Production Builds
You can use a single webpack configuration file to create both development and production builds.
The production builds are optimized and minified. They don't contain code which is only used for debugging. You can use the script built in production mode when packaging your application.
Example of webpack configuration for building a Vuido application in both development and production modes:
By default, webpack will create a development bundle, dist/main.js.
In order to enable the production mode, pass the production
environment flag, for example:
This will create a dist/main.min.js bundle optimized for production.
Note that you must use webpack 4 to be able to minify a Vuido application. Vuido uses some ES6 features which are not supported by the version of UglifyJS used by webpack 3. Alternatively, you can use a different minifier which is compatible with ES6.
Last updated