![]() ![]() In cases when the eventual publicPath of output files isn't known at compile time, it can be left blank and set dynamically at runtime in the entry point file. Here's a more complicated example of using a CDN and hashes for assets: If your configuration creates more than a single "chunk" (as with multiple entry points or when using plugins like CommonsChunkPlugin), you should use substitutions to ensure that each file has a unique name. This configuration would output a single bundle.js file into the /home/proj/public/assets directory. An absolute path to your preferred output directory. ![]() A filename to use for the output file(s).The minimum requirements for the output property in your webpack config is to set its value to an object including the following two things: Note that, while there can be multiple entry points, only one output configuration is specified. Configuring the output configuration options tells webpack how to write the compiled files to disk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |