We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c325bd + 4bd85d0 commit 091b922Copy full SHA for 091b922
webpack_boilerplate/frontend_template/{{cookiecutter.project_slug}}/webpack/webpack.common.js
@@ -6,9 +6,13 @@ const WebpackAssetsManifest = require("webpack-assets-manifest");
6
7
const getEntryObject = () => {
8
const entries = {};
9
- glob.sync(Path.join(__dirname, "../src/application/*.js")).forEach((path) => {
10
- const name = Path.basename(path, ".js");
11
- entries[name] = path;
+ glob.sync(Path.join(__dirname, "../src/application/*.{js}")).forEach((path) => {
+
+ const name = Path.basename(path);
12
+ const extension = Path.extname(path);
13
+ const entryName = name.replace(extension, '');
14
15
+ entries[entryName] = path;
16
});
17
return entries;
18
};
0 commit comments