-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
52 lines (52 loc) · 1.08 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
45
46
47
48
49
50
51
52
module.exports = {
entry: "./public/main.js",
output: {
path: __dirname + '/public/build/',
publicPath: '/build/',
filename: "bundle.js"
},
module: {
loaders: [
{test: /\.css$/, loader: "style!css"},
{
test: /\.js$/,
exclude: /node_modules/,
loaders: ["babel-loader"]
},
{
test: /\.vue$/,
loader: 'vue'
},
{
// edit this for additional asset file types
test: /\.(png|jpg|gif)$/,
loader: 'url',
query: {
// inline files smaller then 10kb as base64 dataURL
limit: 10000,
// fallback to file-loader with this naming scheme
name: '[name].[ext]?[hash]'
}
}
]
},
devtool: 'source-map',
devServer: {
proxy: {
'/ws/*': {
target: 'ws://localhost:3000',
ws: true
},
'/api.js': {
target: 'http://localhost:3000'
},
'*/icon.png': {
target: 'http://localhost:3000'
},
'*/logo.png': {
target: 'http://localhost:3000'
}
}
}
}
;