Global command line tool for initializing new project with webpack boilerplate. The generated project includes webpack, live reloading, babel, eslint and sass. Sass files named <file>.module.scss
will be loaded using CSS modules.
npm install -g simple-webpack-starter
start-project <name>
This will create an empty project and install its dependencies. Including the optional name argument will use that project name for the root folder and package.json
. If no project name is provided it will default to new-project
. If git is installed it will also initialize a new repository for you.
In your project's root folder, run npm run start
to launch the development server. By default your application will be served from port 8888
. You can change this by editing the port number in webpack.config.js
.
Running npm run build
will create a minified production bundle inside the dist
folder. You can preview your production application by running npm run preview
.