A reusable SCSS / JS builder, now based on esbuild!
- Node 12
- Super fast!
- JSX
- Sass / SCSS
- PostCSS
- Autoprefixer
- Browserslist support
- Copy additional files
- Compress all files into a ZIP
- etc.
- Add scripts to your project's package.json:
"scripts": {
"start": "master-builder",
"build": "master-builder build",
"deploy": "master-builder deploy"
},
npm install @stevygee/master-builder --save-dev
npm start
Optional: Copy .master-builder
, .browserslistrc
config files to your project and configure to your needs!
npm run build
npm run deploy
- Upload the zip file in dist/packages for use in WordPress (install theme/plugin).
- Checkout this repo
npm install
- Instead of
npm start
, usenode bin/index.js
ornode bin/index.js deploy
to build the example files
How to add as a local dependency:
- Checkout this repository in a sibling directory next to your project
- Change the dependency path in your project's package.json:
"devDependencies": {
...
"@stevygee/master-builder": "../master-builder"
}
- Use
npm install
to continously update the package after you've made a change.