Releases: stevygee/master-builder
Releases · stevygee/master-builder
v0.7.1 - Choose your JS format per file
Changes:
- ESModules are now optional, you can opt-in per file group:
"scripts": {
"files": [
{
"sourceFolder": "./example/src/js/",
"sourceFiles": ["entry1.js", "entry2.js"],
"destinationFolder": "./js",
"outputName": "[name].js",
"format": "esm"
}
],
"chunkNames": "./js/[name]-[hash]",
"cleanFiles": ["./js/*.{js,map}"]
},
- Copy task watches for file changes
- Updated example
v0.7.0 - Switch to esbuild
The package has been completely rewritten and now uses esbuild!
The build command is up to 12x faster!
- Rewritten using ES modules and promises
- Hello esbuild
- Goodbye gulp!
- Generate ESmodules with code splitting
- Previous config files are supported
Upgrade notes:
- In the existing config, you might want to ignore
_component.scss
files:
"sourceFiles": ["./src/**/[!_]?*.scss"],
- If you want to use code splitting, you need to specify a path for chunks:
"scripts": {
"chunkNames": "./js/chunks/[name]-[hash]",
},
config.styles.sourceFiles
still works, but only if the base dir is 'src/'. Going forward, you should use the new format. So this:
"styles": {
"sourceFiles": ["./example/src/scss/*.scss"],
"destinationFolder": "./css",
},
will become:
"styles": {
"files": [
{
"sourceFiles": ["*.scss"],
"sourceFolder": "./example/src/scss/",
"destinationFolder": "./css",
"outputName": "[name].css"
}
],
},
- If you want to use globs for scripts, you need to specify a
sourceFolder
in that block as well.