forked from Rostlab/JS16_ProjectC_Group10
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.deploy.config.js
More file actions
33 lines (31 loc) · 1001 Bytes
/
webpack.deploy.config.js
File metadata and controls
33 lines (31 loc) · 1001 Bytes
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
var webpack = require("webpack");
module.exports = {
entry: {
deploy: "./mockup/deploy.js"
},
output: {
path: 'builds',
filename: '[name].bundle.js',
publicPath: 'builds/',
},
module: {
loaders: [
{test: /\.css$/, loader: "style!css"},
{test: /\.(png|jpg|svg|jpeg)/, loaders: ['url', 'image-webpack']},
{test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff'},
{test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream'},
{test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
{test: /\.less$/,loader: "style!css!less"}
]
},
resolve: {
modulesDirectories: ['node_modules', 'bower_components'],
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
]
};