fix(build): update built files to output js to new place

This commit is contained in:
hexxa 2022-04-17 12:31:29 +08:00 committed by Hexxa
parent 8162fc15f3
commit 56505dacdd
8 changed files with 68 additions and 77 deletions

View file

@ -4,15 +4,6 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
const dev = require("./webpack.dev.js");
module.exports = merge(dev, {
entry: ["./src/app.tsx", "./src/components/api.ts"],
context: `${__dirname}`,
output: {
globalObject: "this",
path: `${__dirname}/../../../public/static`,
chunkFilename: "[name].bundle.js",
filename: "[name].bundle.js",
library: "Q",
},
plugins: [
new HtmlWebpackPlugin({
template: `${__dirname}/build/template/index.template.dev.html`,