Skip to content

Integrated "fork-ts-checker-webpack-plugin" #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zimudec
Copy link

@zimudec zimudec commented Jul 29, 2020

Integrated "fork-ts-checker-webpack-plugin" to analyze typescript errors automatically in the compilation process, without the need to do it manually with tsc (Requires tsconfig.json file in the folder from where it is compiled)

…ors automatically in the compilation process, without the need to do it manually with tsc (Requires tsconfig.json file in the folder from where it is compiled)
@raicem
Copy link
Owner

raicem commented Aug 21, 2020

Thanks @zimudec! That's a great idea.

I am so out of touch with repo, I don't wanna change anything at a whim. I'll take a look once I got some free time and merge it in with a new version.

@zimudec
Copy link
Author

zimudec commented Aug 11, 2021

With laravel-mix 6, this is no longer necessary. With the following code, and the use of the "react()" function, laravel mix integrates it automatically:

const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

mix.webpackConfig({
  plugins: [
    new ForkTsCheckerWebpackPlugin(),
  ],
}).override((webpackConfig) => {
  webpackConfig.resolve.extensions.push(".tsx");
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants