A highly scalable and simple webpack boilerplate for client apps.
Rename .env.example
to .env
. Then:
# install dependencies
$ yarn
# serve with hot reload
$ yarn build:watch
# build for production with minification
$ yarn build
# run tests
$ yarn test
# run tests and watch
$ yarn test:watch
# run test coverage report
$ yarn test:coverage
NOTE: For disable sourceMap, just remove it from .env
file.
.
├── .babelrc # babel config
├── .editorconfig # editor config
├── .env.example # env variables example
├── .eslintignore # eslint ignore config
├── .eslintrc # eslint config
├── .gitignore # git ignore config
├── .nvmrc # nvm config
├── .tern-project # atom-ternjs project config
├── package.json # https://docs.npmjs.com/files/package.json
├── postcss.config.js # postcss config
├── README.md # this file
├── webpack.config.js # webpack config
├── yarn.lock # https://yarnpkg.com/en/docs/yarn-lock
├── coverage/ # jest coverage output
├── dist/ # webpack build output
├── test/ # jest config
├── lib/ # future external packages
├── public/ # files that will be copied to dist
└── src/ # source code
├── app/
│ └── main.js # app entry file
├── styles/
│ └── main.scss # main scss file
└── index.html # template used by html-webpack-plugin
Module build failed: Error: ENOENT: no such file or directory, scandir
Rebuild node-sass
$ npm rebuild node-sass