forked from auth0-blog/vue-jwt-authentication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
27 lines (27 loc) · 787 Bytes
/
webpack.config.js
File metadata and controls
27 lines (27 loc) · 787 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
module.exports = {
// the main entry of our app
entry: ['./src/index.js', './src/auth/index.js'],
// output configuration
output: {
path: __dirname + '/build/',
publicPath: 'build/',
filename: 'build.js'
},
// how modules should be transformed
module: {
loaders: [
// process *.vue files using vue-loader
{ test: /\.vue$/, loader: 'vue' },
// process *.js files using babel-loader
// the exclude pattern is important so that we don't
// apply babel transform to all the dependencies!
{ test: /\.js$/, loader: 'babel', exclude: /node_modules/ }
]
},
// configure babel-loader.
// this also applies to the JavaScript inside *.vue files
babel: {
presets: ['es2015'],
plugins: ['transform-runtime']
}
}