Skip to content

Commit

Permalink
Fix compiler assets error webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Jan 8, 2024
1 parent c5f8cfd commit 65ce991
Show file tree
Hide file tree
Showing 3 changed files with 475 additions and 15 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@
"pump": "^3.0.0",
"sass": "^1.52.1",
"sass-loader": "^7.0.1",
"wp-pot": "^1.10.2"
"webpack-cli": "^5.1.4",
"wp-pot": "^1.10.2",
"webpack": "^5.89.0"
},
"scripts": {
"watch": "webpack --watch",
"build": "node_modules/.bin/encore dev --env.basePath=.",
"build": "BASE_PATH=. node_modules/.bin/encore dev",
"setup": "gulp setup",
"e2e-activation": "npx playwright test --project=activation",
"e2e-simple": "npx playwright test --project=simple-classic",
Expand Down
7 changes: 4 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ function configCss ({ basePath })

function config (env)
{
const config = [
configJavaScript(env),
configCss(env)
const basePath = process.env.BASE_PATH || '.';
const config = [
configJavaScript({basePath}),
configCss({basePath})
]

return [...config]
Expand Down
Loading

0 comments on commit 65ce991

Please sign in to comment.