-
Notifications
You must be signed in to change notification settings - Fork 103
/
webpack.config.js
35 lines (34 loc) · 784 Bytes
/
webpack.config.js
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
const webpack = require("webpack");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require("path");
module.exports = {
entry: path.resolve(__dirname, "js/index.js"),
plugins: [
new MiniCssExtractPlugin({
filename: "index.css",
}),
],
devtool: "source-map",
mode: "development",
module: {
rules: [
{
test: /\.(js|jsx)/,
exclude: /node_modules/,
use: "babel-loader",
},
{
test: /\.(css)/,
use: [MiniCssExtractPlugin.loader, "css-loader"],
},
],
},
output: {
publicPath: "/",
filename: "viewer.js",
path: path.resolve(__dirname, "jupyter_remote_desktop_proxy/static/dist"),
},
resolve: {
extensions: [".css", ".js", ".jsx"],
},
};