Skip to content

Commit bc0121e

Browse files
committed
changes made to webpack config
1 parent e2a154f commit bc0121e

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

config/webpack.common.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ let config = null;
1313
const plugin = ['@plugins/importPlugin.ts'];
1414
const points = [];
1515

16-
if (!env.isDev) {
17-
points.push('./index.ts');
18-
} else {
16+
if (env.isDev)
1917
points.push('webpack/hot/dev-server');
20-
points.push('./index.ts');
21-
}
18+
19+
points.push('./index.ts');
2220

2321
if (env.isPlugin) {
2422
config = {

config/webpack.plugins.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ const pages = fs.readdirSync(pagesDir).map((file) => {
2121
return file.split('/', 2);
2222
});
2323

24-
const description = 'Узнайте, как использовать Range Slider Fox'
25-
+ ' на нескольких практических демонстрациях';
24+
const description = 'Узнайте, как использовать Range Slider Fox на нескольких практических демонстрациях';
2625
const keywords = 'range slider, diapason, interval, price range, price slider';
2726

2827
const plugins = [];

webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ const commonConfig = require('./config/webpack.common');
33
const pluginsConfig = require('./config/webpack.plugins');
44
const moduleConfig = require('./config/webpack.module');
55

6-
// eslint-disable-next-line no-unused-vars
7-
module.exports = (env) => merge(commonConfig, pluginsConfig, moduleConfig);
6+
module.exports = () => merge(commonConfig, pluginsConfig, moduleConfig);

0 commit comments

Comments
 (0)