Edit Page

tasks/config/copy.js

This file configures a Grunt task called "copy".

Copy files and/or folders from your assets/ directory into the web root (.tmp/public) so they can be served via HTTP, and also for further pre-processing by other Grunt tasks.

Normal usage (sails lift)

Copies all directories and files (except CoffeeScript and LESS) from the assets/ folder into the web root -- conventionally a hidden directory located .tmp/public.

Via the build tasklist (sails www)

Copies all directories and files from the .tmp/public directory into a www directory.

Usage

For additional usage documentation, see grunt-contrib-copy.

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Check out the official Sails VS Code extension

Documentation

App Structure


Sails logo

Anatomy of a Sails App

AltStyle によって変換されたページ (->オリジナル) /