forked from beer-garden/angular-schema-form-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.demo.js
More file actions
38 lines (32 loc) · 811 Bytes
/
webpack.config.demo.js
File metadata and controls
38 lines (32 loc) · 811 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
38
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const common = require('./webpack.config.common.js');
module.exports = merge(common, {
mode: 'development',
entry: {
addons: path.join(__dirname, 'src', 'addons'),
demo: path.join(__dirname, 'demo', 'app')
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/dist/'
},
devtool: 'cheap-module-eval-source-map',
devServer: {
contentBase: path.resolve(__dirname, 'demo'),
watchContentBase: true,
stats: 'minimal',
port: 8078
},
plugins: [
new webpack.ProvidePlugin({
'$': 'jquery',
'jQuery': 'jquery',
'window.jQuery': 'jquery',
'moment': 'moment',
'tv4': 'tv4'
}),
]
});