forked from Cal-CS-61A-Staff/61a-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
32 lines (31 loc) · 862 Bytes
/
webpack.config.js
File metadata and controls
32 lines (31 loc) · 862 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
const webpack = require("webpack");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
module.exports = {
module: {
noParse: /monaco-editor\/min\/vs\/loader\.js|jquery\.jsPlumb-1\.3\.10-all-min\.js/,
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: "eslint-loader",
options: {
emitError: false,
emitWarning: true,
},
},
],
},
plugins: [
new CleanWebpackPlugin(),
new webpack.DefinePlugin({
ELECTRON: true,
SCHEME_COMPILE: false,
VERSION: "\"1.0.2\"",
}),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
jquery: "jquery",
}),
],
};