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.
1 parent 74b9e55 commit d066858Copy full SHA for d066858
test/dummy/config/webpack/webpack.config.js
@@ -1,15 +1,15 @@
1
const { existsSync } = require('fs');
2
const { resolve } = require('path');
3
-const { env, webpackConfig } = require('shakapacker');
+const { env, generatewebpackConfig } = require('shakapacker');
4
5
const envSpecificConfig = () => {
6
const path = resolve(__dirname, `${env.nodeEnv}.js`);
7
if (existsSync(path)) {
8
console.log(`Loading ENV specific webpack configuration file ${path}`);
9
return require(path);
10
} else {
11
- return webpackConfig;
+ return generatewebpackConfig();
12
}
13
};
14
15
-module.exports = envSpecificConfig();
+module.exports = envSpecificConfig();
0 commit comments