Webpack conf now outputs to public/dist.
This commit is contained in:
		| @@ -16,9 +16,10 @@ const environment = isProd | ||||
|  | ||||
| const webpackConfig = merge(commonConfig(false), { | ||||
|   mode: "production", | ||||
|   stats: { children: false }, | ||||
|   output: { | ||||
|     path: helpers.root("dist"), | ||||
|     publicPath: "/dist/", | ||||
|     path: helpers.root("public/dist"), | ||||
|     publicPath: "/public/dist/", | ||||
|     filename: "js/[name].bundle.[hash:7].js" | ||||
|   }, | ||||
|   optimization: { | ||||
|   | ||||
| @@ -65,8 +65,8 @@ passport.serializeUser(User.serializeUser()); | ||||
| passport.deserializeUser(User.deserializeUser()); | ||||
|  | ||||
| // files | ||||
| app.use("/assets", express.static(path.join(__dirname, "assets"))); | ||||
| app.use("/dist", express.static(path.join(__dirname, "dist"))); | ||||
| app.use("/public", express.static(path.join(__dirname, "public"))); | ||||
| app.use("/service-worker.js", express.static(path.join(__dirname, "public/sw/serviceWorker.js"))); | ||||
|  | ||||
| // api endpoints | ||||
| app.use("/api/", apiRouter); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user