From 56bf86a7f3e467d3306fbaa0cb8fa13885e19063 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Wed, 27 Apr 2022 00:45:40 -0400 Subject: [PATCH] Update webpack.config.js --- webpack.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 901a1c65..18ab9ed7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -14,9 +14,7 @@ module.exports = { }, output: { filename: "[name].js", - path: path.resolve(__dirname, "common/assets"), - // publicPath: "//dangeredwolf.com/", - publicPath: '/', + path: path.resolve(__dirname, "common/assets/js"), environment: { arrowFunction: true }, @@ -26,6 +24,9 @@ module.exports = { resolve: { extensions: [".js", ".jsx", ".ts", ".tsx", ".png", ".jpg", ".mp3", ".mp4", ".aac", ".webp"], }, + experiments: { + topLevelAwait: true + }, plugins: [ // new webpack.DefinePlugin({ // __BUILD_ID__: JSON.stringify(buildId)