¶ Parameters related to the dev server/watch mode ( serve and watch) Format Profiles the build (a flamechart can be generated) log-level (none|error|warn|info|verbose)ĭisables reading from the filesystem cache parcel build index.htmlĪs opposed to serve and watch, build has scope hoisting enabled by default (so the other commmands implicity specify -no-scope-hoist). parcel index.html ¶ parcel build īuilds the assets once, it also enabled minification and sets the NODE_ENV=production environment variable. The watch command is similar to serve, but only with a HMR server and no HTTP (dev) server. In this case, load the file directly e.g. If you have specified multiple HTML entry points and none of them is has the output path /index.html, the dev server will respond to localhost:1234/ with a 404, since Parcel doesn't know which HTML bundle is the index. You may also pass a glob or list of globs for multiple entry points: parcel index.html Starts up a development server, which will automatically rebuild your app as you change files and supports hot module replacement.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |