Skip to content

Commit e249d51

Browse files
committed
Nicer diff
1 parent ace0ea8 commit e249d51

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)