Skip to content

Commit ace0ea8

Browse files
committed
No mini css extract plugin for SSR
1 parent e1a1f1c commit ace0ea8

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

packages/react-scripts/config/webpack.config.ssr.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ module.exports = function(webpackEnv) {
102102
preProcessorOptions = {}
103103
) => {
104104
const loaders = [
105-
isEnvProduction && {
106-
loader: MiniCssExtractPlugin.loader,
107-
options: Object.assign(
108-
{},
109-
shouldUseRelativeAssetPaths ? { publicPath: '../../' } : undefined
110-
),
111-
},
112105
{
113106
loader: require.resolve('css-loader/locals'),
114107
options: cssOptions,
@@ -683,14 +676,6 @@ module.exports = function(webpackEnv) {
683676
// See https://github.com/facebook/create-react-app/issues/186
684677
isEnvDevelopment &&
685678
new WatchMissingNodeModulesPlugin(paths.appNodeModules),
686-
isEnvProduction &&
687-
new MiniCssExtractPlugin({
688-
// Options similar to the same options in webpackOptions.output
689-
// both options are optional
690-
// filename: 'static/css/[name].[contenthash:8].css',
691-
filename: 'ssr.css',
692-
// chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
693-
}),
694679
// Generate a manifest file which contains a mapping of all asset filenames
695680
// to their corresponding output file so that tools can pick it up without
696681
// having to parse `index.html`.

0 commit comments

Comments
 (0)