fix(build): update built files to output js to new place
This commit is contained in:
parent
8162fc15f3
commit
56505dacdd
8 changed files with 68 additions and 77 deletions
|
@ -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`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue