Skip to content

Commit

Permalink
refactor webpack .dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alkorlos committed Dec 15, 2023
1 parent edee724 commit 117d2bf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ gulpfile.js
postcss.config.cjs
stylelint.config.cjs
stylelint.config.rational-order.cjs
webpack.config.js
webpack.config.dev.js
webpack.config.prod.js
4 changes: 2 additions & 2 deletions docs/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bundler/
|── postcss.config.js
|── stylelint.config.js
|── stylelint.config.rational-order.js
|── webpack.config.js
|── webpack.config.dev.js
```

* `/docs` - документация к репозиторию;
Expand Down Expand Up @@ -55,4 +55,4 @@ bundler/
* `postcss.config.js` - конфигурация PostCSS:
* `stylelint.config.js` - конфигурация stylelint:
* `stylelint.config.rational-order.js` - порядок свойств, селекторов и директив для stylelint:
* `webpack.config.js` - конфигурация webpack.
* `webpack.config.dev.js` - конфигурация webpack.
2 changes: 1 addition & 1 deletion gulp/tasks/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import webpack from 'webpack';
import middleware from 'webpack-dev-middleware';

import config from '../config.js';
import webpackConfig from './../../webpack.config.js';
import webpackConfig from './../../webpack.config.dev.js';
import webpackConfigMin from './../../webpack.config.prod.js';

const compiler = webpack(webpackConfig);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "npx gulp --env-file=.env.development",
"build": "npx gulp build --env-file=.env.production",
"build:obfuscation": "npx gulp build",
"webpack": "npx webpack --config webpack.config.js",
"webpack": "npx webpack --config webpack.config.dev.js",
"webpack:production": "npx webpack --config webpack.config.prod.js",
"stylelint": "npx stylelint \"./src/styles/**/*.pcss\"",
"stylelint:fix": "npx stylelint \"./src/styles/**/*.pcss\" --fix",
Expand Down
File renamed without changes.

0 comments on commit 117d2bf

Please sign in to comment.