mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-05 05:32:51 +00:00
22 lines
523 B
JavaScript
22 lines
523 B
JavaScript
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
const webpack = require("webpack");
|
|
const { merge } = require("webpack-merge");
|
|
const common = require("./webpack.common.js");
|
|
|
|
module.exports = merge(common, {
|
|
mode: "development",
|
|
devtool: "inline-source-map",
|
|
devServer: {
|
|
historyApiFallback: true,
|
|
port: 8081,
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
API_URL: JSON.stringify("http://127.0.0.1:8080"),
|
|
}),
|
|
new HtmlWebpackPlugin({
|
|
template: "index.html",
|
|
}),
|
|
],
|
|
});
|