1.18.0 • Published 5 years ago
deming-webpack v1.18.0
Overview
This package contains my configuration files for Webpack, including PostCSS and Babel. It also includes my starter layout for the src
folder
Instructions
Generate the blank config files, as well as the src folder by running yarn deming-webpack generate-files
.
Then, include these scripts in your package.json
"scripts": {
"analyze": "export ANALYZE='YES'; yarn build",
"build": "webpack --mode production --config webpack.production.config.js",
"generate-pwa-icons": "yarn pwa-asset-generator ./src/assets/logo.svg ./src/assets/manifest -t png -r",
"proxy": "ngrok http https://localhost:3000 -hostname=subdomain.ngrok.io",
"start": "webpack-dev-server --open --mode development --config webpack.development.config.js",
"test": "yarn jest --watch"
},
That is it. You are done!