- Configuration for a production and development environments
- Transpile both ES6+ and .ts to ES5
- Compile SCSS to CSS
- PostCSS autoprefix
- Managed static assets
Check you have the latest versions of node.js
and npm
installed
$ node -v
$ npm -v
To install node go to Node JS, download and install.
$ npm install
$ npm build:dev
$ npm build:prod
All built files can be found in the dist/
directory
$ npm start
Open http://localhost:8080/
in your preferred browser
Change any file within /src
and the browser will automatically refresh
config/webpack.common.config.js
This is the base configuration for your Webpack project
config/webpack.dev.config.js
This is the development config which extends the Common config
config/webpack.dev.config.js
This is the Production config environment which extends the Common config
tsconfig.json
postcss.config.js
PostCSS is included by default for autoprefixing, but can be used along with many of the other plugins available from the PostCSS community