Skip to content

v4.0.0

Compare
Choose a tag to compare
@jyounce jyounce released this 28 Nov 07:41
· 49 commits to master since this release

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:
  • bump server deps:

BREAKING CHANGES

  1. 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'
    			}
    		}
    	}
    }
  2. 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
  3. bump typescript:

    • breaking change only applies to people using typescript
    • find breaking changes here: v2.6