@@ -20,8 +20,6 @@ import { WebpackDeduplicationPlugin } from 'webpack-deduplication-plugin';
2020import { WebpackManifestPlugin } from 'webpack-manifest-plugin' ;
2121
2222import { AruiRuntimePlugin , getInsertCssRuntimeMethod } from '../plugins/arui-runtime' ;
23- import { insertPlugin } from '../plugins/insert-plugin' ;
24- import { postCssGlobalData } from '../plugins/postcss-global-data/postcss-global-data' ;
2523import { htmlTemplate } from '../templates/html.template' ;
2624
2725import { getImageMin } from './config-extras/minimizers' ;
@@ -287,10 +285,7 @@ export const createSingleClientWebpackConfig = (
287285 loader : require . resolve ( 'postcss-loader' ) ,
288286 options : {
289287 postcssOptions : {
290- // добавляем postCssGlobalData плагин перед postcss-custom-media
291- plugins : insertPlugin ( postcssConf , 'postcss-custom-media' , postCssGlobalData ( {
292- files : [ path . join ( __dirname , 'mq.css' ) , configs . componentsTheme ] . filter ( Boolean ) as string [ ]
293- } ) )
288+ plugins : postcssConf ,
294289 } ,
295290 } ,
296291 } ,
@@ -318,10 +313,7 @@ export const createSingleClientWebpackConfig = (
318313 loader : require . resolve ( 'postcss-loader' ) ,
319314 options : {
320315 postcssOptions : {
321- // добавляем postCssGlobalData плагин перед postcss-custom-media
322- plugins : insertPlugin ( postcssConf , 'postcss-custom-media' , postCssGlobalData ( {
323- files : [ path . join ( __dirname , 'mq.css' ) , configs . componentsTheme ] . filter ( Boolean ) as string [ ]
324- } ) )
316+ plugins : postcssConf ,
325317 } ,
326318 } ,
327319 } ,
0 commit comments