forked from openearth/spatial-events
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.conf.js
More file actions
36 lines (35 loc) · 802 Bytes
/
webpack.conf.js
File metadata and controls
36 lines (35 loc) · 802 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
34
35
36
var webpack = require('webpack');
var config = {
entry: './app/elements/vue.js',
output: {
path: 'dist/js',
publicPath: 'dist',
filename: 'build.js'
},
devtool: 'source-map',
babel: {
presets: ['es2015'],
plugins: ['transform-runtime']
},
resolve:{
modulesDirectories: ['node_modules', 'bower_components']
},
module: {
loaders: [
{
test: /\.vue$/,
loader: 'vue'
},
{
test: /\.scss$/,
loaders: ['style', 'css', 'sass']
},
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/
}
]
}
};
module.exports = config;