Skip to content

Commit

Permalink
Обновление фронтенда. Encore до 1.5 и Webpack теперь 5-й.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Jul 27, 2021
1 parent 9341429 commit 40c69fe
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 40 deletions.
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,48 +25,48 @@
},
"homepage": "https://github.com/regiomedia/bitrix-project#readme",
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/plugin-transform-runtime": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@babel/register": "^7.10.5",
"@babel/runtime": "^7.11.2",
"@symfony/webpack-encore": "^0.30.2",
"@babel/core": "^7.12.10",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/register": "^7.12.10",
"@babel/runtime": "^7.12.5",
"@symfony/webpack-encore": "^1.5.0",
"babel-eslint": "^10.1.0",
"cross-env": "^7.0.2",
"css-loader": "^3.6.0",
"cross-env": "^7.0.3",
"css-loader": "^6.2.0",
"eslint": "^7.5.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.3.0",
"eslint-plugin-vue": "^7.7.0",
"file-loader": "^6.2.0",
"node-sass": "^4.14.1",
"postcss-calc": "^7.0.5",
"postcss-flexbugs-fixes": "^4.2.1",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-calc": "^8.0.0",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-import": "^14.0.2",
"postcss-loader": "^6.1.1",
"postcss-pixel-to-viewport": "^1.0.2",
"postcss-preset-env": "^6.7.0",
"postcss-responsive-font": "^1.0.6",
"postcss-scss": "^2.1.1",
"postcss-scss": "^4.0.0",
"prettier": "^2.2.1",
"sass-loader": "^8.0.2",
"stylelint": "^13.6.1",
"stylelint-config-recess-order": "^2.0.4",
"sass-loader": "^12.1.0",
"stylelint": "^13.8.0",
"stylelint-config-recess-order": "^2.3.0",
"stylelint-config-recommended-scss": "^4.2.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-config-standard": "^22.0.0",
"stylelint-scss": "^3.18.0",
"svg-spritemap-webpack-plugin": "^3.5.7",
"svg-spritemap-webpack-plugin": "^4.1.0",
"url-loader": "^4.1.0",
"vue-eslint-parser": "^7.1.0",
"vue-loader": "^15.9.3",
"vue-template-compiler": "2.6.11",
"webpack-bundle-analyzer": "^3.8.0",
"webpack-notifier": "^1.6.0"
"vue-eslint-parser": "^7.3.0",
"vue-loader": "^15.9.5",
"vue-template-compiler": "2.6.14",
"webpack-bundle-analyzer": "^4.4.2",
"webpack-notifier": "^1.12.0"
},
"dependencies": {
"axios": "^0.21.1",
"bootstrap": "^4.6.0",
"copy-webpack-plugin": "^6.2.1",
"vue": "2.6.11",
"vue": "2.6.14",
"popper.js": "^1.16.1",
"regenerator-runtime": "^0.13.7",
"vue-resource": "^1.5.1",
Expand Down
18 changes: 3 additions & 15 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Encore
})
.addAliases(prepareAliases(ALIASES))
.enableVueLoader(() => {}, { runtimeCompilerBuild: true, useJsx: false })
.enablePostCssLoader()
// .enablePostCssLoader()
.enableSassLoader(() => {}, {
resolveUrlLoader: false,
})
Expand All @@ -91,27 +91,15 @@ Encore
options.DEBUG = false;
options["process.env.DEBUG"] = JSON.stringify("false");
})
.configureUrlLoader({
images: {
limit: 8192,
esModule: false,
},
fonts: {
limit: 8192,
esModule: false,
},
})
.enableSourceMaps(IS_DEV || IS_DEV_SERVER)
.addExternals({
BX: "BX",
ymaps: "ymaps",
jquery: "jQuery",
})
.configureFilenames({
js: "js/[name].js?v=[hash]",
css: "css/[name].css?v=[hash]",
images: "images/[path][name].[hash:8].[ext]",
fonts: "fonts/[path][name].[hash:8].[ext]",
js: "js/[name].js?v=[fullhash]",
css: "css/[name].css?v=[fullhash]"
})
.enableVersioning(!IS_DEV_SERVER)
//TODO: перенастроить под chunks: "all" после включения поддержки нескольких файлов для entrypoints.json
Expand Down

0 comments on commit 40c69fe

Please sign in to comment.