forked from namannehra/flipping-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.demo.dev.js
45 lines (42 loc) · 1.08 KB
/
webpack.demo.dev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
'use strict'
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
const config = {
mode: 'development',
entry: './demo/index.js',
devtool: 'eval-source-map',
devServer: {
host: '0.0.0.0',
},
module: {
rules: [
{
test: /\.sass$/,
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true,
localIdentName: '[local]-[hash:base64:4]',
},
},
'sass-loader',
],
}, {
test: /\.js$/,
exclude: /node_modules/,
use: 'babel-loader',
},
],
},
resolve: {
alias: {
'flipping-pages': path.resolve(__dirname, './src/FlippingPages'),
},
},
plugins: [
new HtmlWebpackPlugin({template: 'demo/index.html'}),
],
}
module.exports = config