File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
const webpack = require ( 'webpack' ) ;
4
4
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
5
5
const InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
6
+ const ForkTsCheckerWebpackPlugin = require ( 'fork-ts-checker-webpack-plugin-alt' ) ;
6
7
const nodeExternals = require ( 'webpack-node-externals' ) ;
7
8
const webpackConfigFactory = require ( './webpack.config.js' ) ;
8
9
const paths = require ( './paths' ) ;
@@ -60,8 +61,11 @@ module.exports = function (webpackEnv) {
60
61
// filter out some plugins
61
62
plugins : template . plugins . filter ( plugin =>
62
63
[
64
+ // seems to break multicompiler dev server watch mode
65
+ ForkTsCheckerWebpackPlugin ,
66
+ // interpolation of '%PUBLIC_URL%' will happen at runtime, not compile time
63
67
InterpolateHtmlPlugin ,
64
- // filter out original DefinePlugin
68
+ // this will be replaced by a modified version
65
69
webpack . DefinePlugin
66
70
] . every ( pluginClass => ! ( plugin instanceof pluginClass ) )
67
71
) . concat ( [
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ router.use(express.static(
35
35
router . use ( ( request : express . Request , response : express . Response , next : express . NextFunction ) => {
36
36
const template = readFileSync ( 'build/index.html' )
37
37
. toString ( )
38
- . replace ( / % P U B L I C _ U R L % / g, process . env . PUBLIC_URL || '' )
38
+ . replace ( / % P U B L I C _ U R L % / g, process . env . PUBLIC_URL || '' ) ;
39
39
40
40
const [ head , tail ] = template . split ( '%ROOT%' ) ;
41
41
const stream = renderToNodeStream ( < App /> ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ router.use(express.static(
35
35
router . use ( ( request , response , next ) => {
36
36
const template = readFileSync ( 'build/index.html' )
37
37
. toString ( )
38
- . replace ( / % P U B L I C _ U R L % / g, process . env . PUBLIC_URL || '' )
38
+ . replace ( / % P U B L I C _ U R L % / g, process . env . PUBLIC_URL || '' ) ;
39
39
40
40
const [ head , tail ] = template . split ( '%ROOT%' ) ;
41
41
const stream = renderToNodeStream ( < App /> ) ;
You can’t perform that action at this time.
0 commit comments