File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 6464 "vue" : " ^2.6.14"
6565 },
6666 "dependencies" : {
67- "@babel/core" : " ^7.16.5 " ,
68- "@babel/preset-env" : " ^7.16.5 " ,
67+ "@babel/core" : " ^7.17.9 " ,
68+ "@babel/preset-env" : " ^7.16.11 " ,
6969 "@intervolga/optimize-cssnano-plugin" : " ^1.0.6" ,
7070 "@marshallofsound/webpack-asset-relocator-loader" : " ^0.5.0" ,
71- "@micro-app/shared-utils" : " ^0.1.25 " ,
71+ "@micro-app/shared-utils" : " ^0.1.26 " ,
7272 "@soda/friendly-errors-webpack-plugin" : " ^1.8.1" ,
7373 "address" : " ^1.1.2" ,
7474 "autoprefixer" : " ^9.8.8" ,
75- "babel-loader" : " ^8.2.3 " ,
75+ "babel-loader" : " ^8.2.4 " ,
7676 "cache-loader" : " ^4.1.0" ,
7777 "case-sensitive-paths-webpack-plugin" : " ^2.4.0" ,
7878 "cli-highlight" : " ^2.1.11" ,
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ module.exports = function unifiedExtend(api, opts) {
4444 extract = isProd ,
4545 sourceMap = false ,
4646 loaderOptions = { } ,
47+ productionSourceMap = false ,
4748 } = rootOptions . css || { } ;
4849
4950 let { requireModuleExtension } = rootOptions . css || { } ;
@@ -102,7 +103,7 @@ module.exports = function unifiedExtend(api, opts) {
102103 cssDeclarationSorter : false ,
103104 } ] ,
104105 } ;
105- if ( rootOptions . productionSourceMap && sourceMap ) {
106+ if ( productionSourceMap && sourceMap ) {
106107 cssnanoOptions . map = { inline : false } ;
107108 }
108109
@@ -245,7 +246,7 @@ module.exports = function unifiedExtend(api, opts) {
245246 webpackChain
246247 . plugin ( 'optimize-css' )
247248 . use ( require ( '@intervolga/optimize-cssnano-plugin' ) , [ {
248- sourceMap : rootOptions . productionSourceMap && sourceMap ,
249+ sourceMap : productionSourceMap && sourceMap ,
249250 cssnanoOptions,
250251 } ] ) ;
251252 }
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ module.exports = function unifiedExtend(api, opts) {
7171 } ;
7272 } ) ] ) ;
7373 } else {
74- api . logger . warn ( '[webpack]' , 'Not Found "copy-webpack-plugin"' ) ;
74+ api . logger . warn ( '[webpack]' , 'Not Found "copy-webpack-plugin:^5.1.2 "' ) ;
7575 }
7676 }
7777
Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ module.exports = {
5757 description : 'assets resource path. ( stirng )' ,
5858 type : 'string' ,
5959 } ,
60+ filenameHashing : {
61+ description : 'filenameHashing. ( boolean )' ,
62+ type : 'boolean' ,
63+ } ,
6064 } ,
6165 type : 'object' ,
6266} ;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ module.exports = function extendWebpack(api, opts) {
4242 'assetsDir' ,
4343 'devServer' ,
4444 'css' ,
45+ 'filenameHashing' ,
4546 ] ) ;
4647 } ) ) ;
4748
@@ -54,6 +55,7 @@ module.exports = function extendWebpack(api, opts) {
5455 assetsDir : '' ,
5556 devServer : { } ,
5657 css : { } ,
58+ filenameHashing : false ,
5759 } ;
5860 smartMerge ( config , ...Object . values ( microsConfig ) . map ( item => {
5961 return _ . pick ( item || { } , [
You can’t perform that action at this time.
0 commit comments