-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.demo.conf.js
More file actions
37 lines (36 loc) · 840 Bytes
/
webpack.demo.conf.js
File metadata and controls
37 lines (36 loc) · 840 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
37
let merge = require('webpack-merge')
let config = require('./webpack.config')
let path = require('path')
config.externals = null
delete config.externals
module.exports = merge(config, {
entry: {
'demo': './demo/src/index.js'
},
output: {
path: path.join(__dirname, './demo/dist'),
publicPath: '/demo/dist/',
filename: '[name].js'
},
resolve: {
modules: [
path.join(__dirname, './src'),
path.join(__dirname, './node_modules')
],
alias: {
'vue$': 'vue/dist/vue.common.js',
}
},
module: {
rules: [
{
test: /\.txt$/,
loader: 'raw-loader'
}
]
},
devServer: {
historyApiFallback: true,
},
devtool: '#eval-source-map',
})