diff options
| author | Jibin Thomas <jibin.thomas2706@gmail.com> | 2018-10-14 14:57:17 +0530 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-10-14 11:27:17 +0200 |
| commit | 38192d7d93254893ef0e7ec3107c022da8be499f (patch) | |
| tree | 4401e42fe295cd48f69063dd83875684d68d2ca1 /webpack.config.js | |
| parent | d0c28b4b61696f954e8d3372feafda7868e80be9 (diff) | |
Refactor and modernize code base (#5)
Fixes #3 -
* Updated all the dependencies to latest version
* Config files updated
* Moved the files to src directory
* Updated README file
* Configured package.json and README.md for production build
* Added gh-pages package
* Added production details in README.md
* Removed unnecessary script tag from index.html
* Change the fonts to ubuntu
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/webpack.config.js b/webpack.config.js index 7f27918..51d90dc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,15 +1,42 @@ -var bourbon = require('node-bourbon').includePaths - +const HtmlWebPackPlugin = require('html-webpack-plugin'); module.exports = { - entry: './index.js', - output: { - path: __dirname, - filename: 'bundle.js' - }, - module: { - loaders: [ - { test: /\.js$/, loader: 'babel' }, - { test: /\.scss$/, loader: 'style!css!sass?includePaths[]=' + bourbon } + module: { + rules: [ + { + test: /\.js$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader' + } + }, + { + test: /\.html$/, + use: [ + { + loader: 'html-loader' + } ] - } + }, + { + test: /\.scss$/, + use: [ + { + loader: 'style-loader' + }, + { + loader: 'css-loader' + }, + { + loader: 'sass-loader' + } + ] + } + ] + }, + plugins: [ + new HtmlWebPackPlugin({ + template: './src/index.html', + filename: './index.html' + }) + ] }; |
