1.0.0 • Published 8 years ago
webpack-boilerplate-mr v1.0.0
Webpack ^3.x.x boiler-plate
Repository created for study and creation of a boilerplate using webpack ^ 3.x.x
Structure
src/
    ├── main.js
    ├── main.scss
    ├── img/...
    ├── js/...
    └── scss
        ├── abstracts
        │   ├── __abstracts-dir.scss
        │   ├── _fonts.scss
        │   ├── _mixins.scss
        │   └── _variables.scss
        ├── base
        │   ├── __base-dir.scss
        │   ├── _reset.scss
        │   └── _typography.scss
        ├── components
        │   ├── __components-dir.scss
        │   ├── _button.scss
        │   └── _input.scss
        ├── layouts
        │   ├── __layouts-dir.scss
        │   ├── _footer.scss
        │   ├── _header.scss
        │   └── _main-navigation.scss
        └── vendor
            └── __vendors-dir.scssPlugins and Loaders
- babel-preset-es2015
 - clean-webpack-plugin
 - css-loader"
 - extract-text-webpack-plugin
 - file-loader
 - html-webpack-plugin
 - img-loader
 - node-sass
 - purify-css
 - purifycss-webpack
 - raw-loader
 - sass-loader
 - style-loader
 - uglifyjs-webpack-plugin
 - webpack
 - webpack-dev-server
 - babel-core
 - babel-loader
 
Prerequisites
What things you need to install the software and how to install them
- node.js
 - NPM Package Manager
 
Installing
Clone this repository
git clone https://github.com/mariorodeghiero/webpack-boilerplate.gitInstalling the dependencies from the NPM Package Manager
npm installTo start the development environment, run the following command:
npm run devNote: This command also performs a clear in the dist folder and build again.
npm run dev-serverAfter run, open the browser window at http://localhost:8080
Deployment
Run the command below to deploy, minimizing All Files.
npm run prodContributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Author
License
This project is licensed under the MIT License - see the LICENSE.md file for details
1.0.0
8 years ago