林鹏

Results 25 comments of 林鹏

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 ![image](https://user-images.githubusercontent.com/12012671/84974249-7c104900-b155-11ea-9ef6-b7ac37f001e7.png) (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: ![image](https://user-images.githubusercontent.com/12012671/84490957-6ffc3580-acd6-11ea-8dc9-92f49522ed98.png) ![image](https://user-images.githubusercontent.com/12012671/84490982-768aad00-acd6-11ea-9739-d12bf66103f6.png) No: ![image](https://user-images.githubusercontent.com/12012671/84491142-aa65d280-acd6-11ea-97e1-54cc17e59cf4.png) PS: "gQLDir" is webpack aliases. ![image](https://user-images.githubusercontent.com/12012671/84491200-bfdafc80-acd6-11ea-88d9-49f60363fcb4.png) eError: ![image](https://user-images.githubusercontent.com/12012671/84491258-d7b28080-acd6-11ea-869f-49b20383399a.png)

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...