Skip to content

Commit

Permalink
Update webpack.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaFlow committed Feb 27, 2023
1 parent 6d7f1a5 commit e4b185d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions module/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ module.exports = (env) => {
console.log(`ENV`, env);

console.log(`env.output`, env.output);
// const outputPath = env.output
// ? path.resolve(env.output, pjson.name)
// : path.resolve(__dirname, "../project/noodl_modules/" + pjson.name);
const outputPath = path.resolve(env.output, pjson.name)
const outputPath = env.output
? path.resolve(env.output, pjson.name)
: path.resolve(__dirname, "../project/noodl_modules/" + pjson.name);
return {
entry: "./src/index.js",
mode: "production",
Expand Down

0 comments on commit e4b185d

Please sign in to comment.