summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js51
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'
+ })
+ ]
};