forked from leftstick/angular-amap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
37 lines (36 loc) · 913 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
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
app: './example/libs/main.js'
},
output: {
path: path.resolve(__dirname, 'demo'),
filename: '[name].[hash].bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel?{"presets":["es2015"]}',
exclude: /node_modules/
}, {
test: /\.css$/,
loader: 'style!css'
},
{
test: /\.(png)$/,
loader: 'file'
}
]
},
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
inject: 'body',
template: 'html!example/index.html_vm',
favicon: 'example/img/favicon.ico',
hash: false
})
]
};