Skip to content

Commit

Permalink
fix prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Rivet committed May 7, 2021
1 parent 95821cd commit 20b67ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dash-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"private::format.prettier": "prettier --write \"{src,tests}/**/*.{js,jsx,ts,tsx}\"",
"private::lint.eslint": "eslint src tests",
"private::lint.prettier": "prettier \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --list-different",
"build:js": "webpack --mode production",
"build:dev": "webpack --mode development",
"build:js": "webpack",
"build:dev": "webpack",
"build:local": "renderer build local",
"build": "renderer build && npm run prepublishOnly",
"postbuild": "es-check es5 dash_renderer/*.js",
Expand Down
9 changes: 6 additions & 3 deletions dash-renderer/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@ module.exports = options => [
rendererOptions
]),
R.mergeAll([
options,
rendererOptions,
{
mode: 'production',
output: {
path: path.resolve(__dirname, dashLibraryName),
filename: `${dashLibraryName}.min.js`,
library: dashLibraryName,
libraryTarget: 'window',
},
plugins: R.concat(
options.plugins || [],
Expand All @@ -78,8 +83,6 @@ module.exports = options => [
),
]
),
},
options,
rendererOptions
}
])
];

0 comments on commit 20b67ab

Please sign in to comment.