-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwebpack.config.js
44 lines (43 loc) · 992 Bytes
/
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");
module.exports = {
// resolve paths from this directory
context: __dirname,
// add sourcemap
devtool: "eval",
// main entry file
entry: ["./lib/index.js"],
// generated output
output: {
path: "dist",
publicPath: "/dist",
filename: "viewpane.js",
library: "Viewpane"
},
// configure modules
module: {
// configure loaders
loaders: [
{
test: /(app|lib|test).*\.html/,
loader: "html"
}
]
},
plugins: [
// new webpack.optimize.UglifyJsPlugin()
],
// configure the console output
stats: {
colors: false,
modules: true,
reasons: true
},
// Don't show progress
progress: false,
// don't report error to grunt if webpack find errors
failOnError: true,
// use webpacks watcher
watch: false,
// don't finish the grunt task
keepalive: false,
};