-
Notifications
You must be signed in to change notification settings - Fork 1
Prod build
All JavaScript files will be combined and compressed into a single app.min.js file. For this, the "RequireJS Optimizer" will be used. Also, all styles will be compiled and compressed into a single app.min.css file.
If you have not disabled sprite generation and HTML minification, they will be done too.
Your production app will be generated with all assets, resources, js and css into
/dist (will be created if it does not exist).
In case you have a limited list of supported browsers for your application, you can define this list in the package.json (e.g. like in this repository). This list and needed dependencies for the browser detection will be generated by the generator. If you have set up your application to use this feature, a file fallback.js will be distributed with your build. It will detect unsupported browsers and alert a message.
A header will be prefixed to each generated file. It will contain the author, app name, app version, build time, contributors and a copyright year. All informations will be loaded from package.json. The copyright year will be the current year, but if you want a custom one you can set the property copyrightYear in package.json.