-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
44 lines (43 loc) · 1.26 KB
/
webpack.config.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
var webpack = require('webpack');
var path = require("path");
// var commonsPlugin = new webpack.optimize.CommonsChunkPluging('shared.js');
module.exports = {
context: path.resolve('assets/js'),
devtool: "#inline-source-map",
entry: {
about: './about_page.js',
home: './home_page.js',
contact: './contact_page.js'
},
output: {
path: path.resolve('build'),
publicPath: '/build',
filename: "[name].js"
},
watch: true,
devServer: {
contentBase: 'public'
},
module: {
loaders: [{
test: /\.html$/,
loader: "html"
}]
}
// module: {
// loaders: [
// {
// test: /\.scss$/, loader: "style!css!sass"
// // ?outputStyle=expanded&" +
// // "includePaths[]=" + (path.resolve(__dirname, "./bower_components")) + "&" +
// // "includePaths[]=" + (path.resolve(__dirname, "./node_modules"))
// },
// { test: /\.css$/, loader:"style!css"}
// ]
// },
// plugins: debug ? [] : [
// new webpack.optimize.DedupePlugin(),
// new webpack.optimize.OccurenceOrderPlugin(),
// new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
// ],
};