├── .babelrc ├── src ├── assets │ ├── scss │ │ ├── _color.scss │ │ └── app.scss │ └── media │ │ └── webpacklogo.png ├── app.js └── index.html ├── .gitignore ├── package.json ├── LICENSE ├── README.md └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["env"] 3 | } 4 | -------------------------------------------------------------------------------- /src/assets/scss/_color.scss: -------------------------------------------------------------------------------- 1 | $bgcolor: #f3f3f3; 2 | $color: #050505; -------------------------------------------------------------------------------- /src/app.js: -------------------------------------------------------------------------------- 1 | import './assets/scss/app.scss'; 2 | console.log('Its working just fine'); 3 | -------------------------------------------------------------------------------- /src/assets/scss/app.scss: -------------------------------------------------------------------------------- 1 | @import '_color'; 2 | body { 3 | background: $bgcolor; 4 | color: $color; 5 | } 6 | -------------------------------------------------------------------------------- /src/assets/media/webpacklogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arnirjhor/webpack-boilerplate/HEAD/src/assets/media/webpacklogo.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## System and generated files 2 | .idea 3 | .DS_Store 4 | .sass-cache 5 | 6 | ## Directories 7 | log/ 8 | dist/ 9 | node_modules/ 10 | -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "project_name2",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "build": "./node_modules/.bin/webpack",
8 | "build:prod": "./node_modules/.bin/webpack -p",
9 | "watch": "./node_modules/.bin/webpack --watch",
10 | "dev": "./node_modules/.bin/webpack-dev-server"
11 | },
12 | "keywords": [],
13 | "author": "",
14 | "license": "ISC",
15 | "devDependencies": {
16 | "babel-core": "~6.26.0",
17 | "babel-loader": "~7.1.2",
18 | "babel-preset-env": "~1.6.0",
19 | "clean-webpack-plugin": "~0.1.17",
20 | "css-loader": "~0.28.7",
21 | "extract-text-webpack-plugin": "~3.0.0",
22 | "file-loader": "~1.1.4",
23 | "html-loader": "~0.5.1",
24 | "html-webpack-plugin": "~2.30.1",
25 | "node-sass": "~4.5.3",
26 | "sass-loader": "~6.0.6",
27 | "style-loader": "~0.18.2",
28 | "webpack": "~3.6.0",
29 | "webpack-dev-server": "~2.9.1"
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Atiqur Rahman
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Webpack 3 Boilerplate for beginners
2 | A basic webpack 3 boilerplate for beginners to start with any JS/ES6 based project.
3 |