File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,14 @@ module.exports = function(webpackEnv) {
102102 preProcessorOptions = { }
103103 ) => {
104104 const loaders = [
105+ // isEnvDevelopment && require.resolve('style-loader'),
106+ // isEnvProduction && {
107+ // loader: MiniCssExtractPlugin.loader,
108+ // options: Object.assign(
109+ // {},
110+ // shouldUseRelativeAssetPaths ? { publicPath: '../../' } : undefined
111+ // ),
112+ // },
105113 {
106114 loader : require . resolve ( 'css-loader/locals' ) ,
107115 options : cssOptions ,
@@ -676,6 +684,14 @@ module.exports = function(webpackEnv) {
676684 // See https://github.com/facebook/create-react-app/issues/186
677685 isEnvDevelopment &&
678686 new WatchMissingNodeModulesPlugin ( paths . appNodeModules ) ,
687+ // isEnvProduction &&
688+ // new MiniCssExtractPlugin({
689+ // // Options similar to the same options in webpackOptions.output
690+ // // both options are optional
691+ // // filename: 'static/css/[name].[contenthash:8].css',
692+ // filename: 'ssr.css',
693+ // // chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
694+ // }),
679695 // Generate a manifest file which contains a mapping of all asset filenames
680696 // to their corresponding output file so that tools can pick it up without
681697 // having to parse `index.html`.
You can’t perform that action at this time.
0 commit comments