mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-06 13:36:49 +00:00
35 lines
689 B
JavaScript
35 lines
689 B
JavaScript
const webpack = require("webpack");
|
|
const path = require("path");
|
|
|
|
module.exports = {
|
|
entry: "./src/index.tsx",
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: "ts-loader",
|
|
exclude: /node_modules/,
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
use: ["style-loader", "css-loader"],
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new webpack.ContextReplacementPlugin(
|
|
/monaco-editor(\\|\/)esm(\\|\/)vs(\\|\/)editor(\\|\/)common(\\|\/)services/,
|
|
__dirname
|
|
)
|
|
],
|
|
resolve: {
|
|
extensions: [".tsx", ".ts", ".js"],
|
|
},
|
|
output: {
|
|
filename: "bundle.js",
|
|
path: path.resolve(__dirname, "dist"),
|
|
publicPath: "/",
|
|
clean: true,
|
|
},
|
|
};
|