Minimal plugin to get feedback from your website
npm run build
This will:
- Run Webpack starting from the entry point file (
src/index.js
, can be configured) - Convert all files in
src
folder from ES6 to ES5 - According to the
bundle-node
flag inpackage.json
, it will either: - Leave them as separate files, or -
- Minify and bundle them using Webpack, without their
node_modules
dependencies - Output the result to the
lib
folder
npm run build-web
This will:
- Run Webpack starting from the entry point file (
src/index.js
, can be configured) - Convert all files from ES6 to ES5
- Minify them, including all of their module dependencies, as a UMD module (so the file will be self-contained)
- Output the file to the
dist
folder
npm run test
MIT