Skip to content

Commit 392998e

Browse files
committed
maint(Build): Include bundle name and version in generated files (Feature of @patternslib/dev 2.4.0.)
1 parent 1fceab9 commit 392998e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

webpack/webpack.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ const CopyPlugin = require("copy-webpack-plugin");
44
const mf_config = require("@patternslib/dev/webpack/webpack.mf");
55
const package_json = require("../package.json");
66
const path = require("path");
7-
const patternslib_config = require("@patternslib/dev/webpack/webpack.config");
7+
const webpack_config = require("@patternslib/dev/webpack/webpack.config").config;
88

9-
module.exports = (env, argv) => {
9+
module.exports = () => {
1010
let config = {
1111
entry: {
1212
"bundle.min": path.resolve(__dirname, "../src/index.js"),
1313
"bundle-polyfills.min": path.resolve(__dirname, "../src/polyfills.js"),
1414
},
1515
};
1616

17-
config = patternslib_config(env, argv, config);
17+
config = webpack_config({
18+
config: config,
19+
package_json: package_json,
20+
});
1821

1922
config.output.path = path.resolve(__dirname, "../dist/");
2023

0 commit comments

Comments
 (0)