v4.0.0
Features
- new build option:
- inline.jsHtmlImports.client.enable (task, plugin)
- set to true to inline js html imports
- removes html import statement
- replaces template variable with template literal containing contents of ../views/xxx.html
// example js file import template from '../views/xxx.html'; return template;
- new minify build options:
- minify[client|server] (d8f2817)
- before the minify.js build options only applied to client,
- now you can target either client or server and minify ES6+ (minifying ES6+ must be enabled)
- new build options (introduces breaking changes):
- minify.server.json.enable
- minify.client.js.fileName
- minify[client|server].js.enable
- minify[client|server].js.es6 (to minify ES6+)
- minify[client|server].js.options
- bump deps:
- includes bumping typescript v2.5.3 to v2.6.2 (192b60e^...d8f2817)
- bump server deps:
BREAKING CHANGES
-
minify build options:
- To migrate the code follow the example below (in rapid-build.json):
Before:
{ minify: { js: { scripts: false, mangle : false, fileName: 'rapid-build.min.js' } } }
Now:
{ minify: { client: { js: { enable: false, options: { mangle: false }, fileName: 'rapid-build.min.js' } } } }
-
build option:
- breaking change only applies to people who need to support ie 8 and 9
- changed build option minify.css.splitMinFile default value to false (82ebb10)
- the build will no longer by default split styles.min.css into multiple files if the selector count > 4,095
- if you need this feature set the following in your rapid-build.json:
- minify.css.splitMinFile = true
-
bump typescript:
- breaking change only applies to people using typescript
- find breaking changes here: v2.6