-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathwebpack.config.js
More file actions
26 lines (25 loc) · 768 Bytes
/
webpack.config.js
File metadata and controls
26 lines (25 loc) · 768 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
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: path.join(__dirname, 'spyder_terminal', 'server', 'static', 'js', 'main.js'),
output: {
path: path.join(__dirname, 'spyder_terminal', 'server', 'static', 'build'),
filename: 'main.bundle.js',
libraryTarget: 'var',
library: 'spyder_terminal'
},
mode: 'development',
resolve: {
modules: ['node_modules']
},
devServer: {
contentBase: path.join(__dirname, 'spyder_terminal', 'server', 'static')
},
plugins: [
new HtmlWebpackPlugin({
template: path.join(__dirname, 'spyder_terminal', 'server', 'static', 'index.html'),
publicPath: 'static/build/',
scriptLoading: 'blocking'
})
]
};