林鹏
林鹏
node.js: v14.4.0 npm: v6.14.5 webpack: v4.43.0 fork-ts-checker-webpack-plugin: v5.0.1 fork-ts-checker-notifier-webpack-plugin: v2.0.0 Windows 10 professional edition 1902 18363.900  (node:4280) UnhandledPromiseRejectionWarning: TypeError: lints is not iterable at ForkTsCheckerNotifierWebpackPlugin.compilationDone (G:\WebStormWS\WebProTpl\node_modules\fork-ts-checker-notifier-webpack-plugin\index.js:10:75) at SyncWaterfallHook.eval [as...
ForkTsCheckerWebpackPlugin_obj = { async: true, typescript: { enabled: true, memoryLimit: 4096, configFile: path.resolve( __dirname, './tsconfig.json' ), build: false, mode: 'write-tsbuildinfo', diagnosticsOptions: { syntactic: true, semantic: true, declaration: true, global: true,...
When using dynamic import, modifying ". Graphql" will trigger recompilation! But static import will not! SO!!! Recommended: import('gQLDir/GraphQLDemo.graphql'); OR import('../../../graphQL/GraphQLDemo.graphql');
With the dynamic import I mentioned above, there is no need to use script commands to delete the cache.
Yes:   No:  PS: "gQLDir" is webpack aliases.  eError: 
When using dynamic import, modifying ". Graphql" will trigger recompilation! But static import will not! SO!!! Recommended: import('gQLDir/GraphQLDemo.graphql'); OR import('../../../graphQL/GraphQLDemo.graphql'); With the dynamic import I mentioned above, there is no...
Alias cannot be used with "babel-plugin-import-graphql". But!!! Only "graphql-tag/loader","babel-plugin-import-graphql" are not used, but aliases can be used. { test: /\.(graphql|gql)$/i, use: [ { loader: 'graphql-tag/loader', }, ], },
However, I found that if you manually import 'webpack/hot/dev-server.js' and 'webpack-dev-server/client/index.js' into the entry point, you can use both experiments.buildHttp and HMR.
> However, I found that if you manually import 'webpack/hot/dev-server.js' and 'webpack-dev-server/client/index.js' into the entry point, you can use both experiments.buildHttp and HMR. However, it should not be done as...
My demo library: https://github.com/LP1994/experiments_buildHttp_hmr.git There are 6 screenshots inside. The file on the left in the figure is the compiled file with experiments.buildHttp disabled and hot option enabled, which can...