Repository navigation
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.scssfiles:
"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.sourceFilesstill 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
sourceFolderin that block as well.