Skip to content

Commit

Permalink
fixed web pack config
Browse files Browse the repository at this point in the history
  • Loading branch information
eljefe223 committed May 5, 2020
1 parent 29811d5 commit 3bdbcc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sites/website/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin"); // Require html-webpack-plugin plugin
const appDir = path.resolve(__dirname, "./src/app");
const publicDir = path.resolve(__dirname, "./src/piublic");
const outDir = path.resolve(__dirname, "./www");

module.exports = {
entry: {
main: path.resolve(appDir, "index.ts"),
},
output: {
path: __dirname + "/dist", // Folder to store generated bundle
path: path.resolve(__dirname, "/dist"),
filename: "bundle.js", // Name of generated bundle after build
publicPath: "/", // public URL of the output directory when referenced in a browser
},
Expand All @@ -33,7 +34,7 @@ module.exports = {
// Array of plugins to apply to build chunk
new HtmlWebpackPlugin({
title: "FAST website",
template: __dirname + "/src/public/index.html",
template: path.resolve(publicDir, "index.html"),
contentBase: outDir,
}),
],
Expand Down

0 comments on commit 3bdbcc1

Please sign in to comment.