mirror of
https://github.com/logos-messaging/lab.waku.org.git
synced 2026-01-02 22:03:07 +00:00
use public path
This commit is contained in:
parent
df759c6075
commit
e277355121
@ -3,7 +3,7 @@
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "NODE_ENV='production' webpack --config webpack.config.js --mode production",
|
||||
"build": "NODE_ENV=production webpack --config webpack.config.js --mode production",
|
||||
"start": "webpack-dev-server"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@ -1,11 +1,15 @@
|
||||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||
const path = require("path");
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const publicPath = isProduction ? '/dogfooding/' : '/';
|
||||
|
||||
module.exports = {
|
||||
entry: "./src/index.ts",
|
||||
output: {
|
||||
path: path.resolve(__dirname, "build"),
|
||||
filename: "index.js",
|
||||
publicPath: publicPath,
|
||||
},
|
||||
experiments: {
|
||||
asyncWebAssembly: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user