Skip to content
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

watchingDirs and sourceMap enabled cause webpack 5 looping build #6

Open
singggum3b opened this issue Feb 24, 2021 · 1 comment
Open

Comments

@singggum3b
Copy link

Hi !
As title stated, when watchingDirs and sourceMap are enable webpack 5 keep looping build when there're no changes

"webpack": "^5.23.0",
"stylus": "^0.54.8",
"stylus-native-loader": "^1.4.4",
{
                test: /\.(styl|css)$/i,
                use: [
                    // {
                    //     loader: "style-loader",
                    //     options: {
                    //         sourceMap: true,
                    //     }
                    // },
                    MiniCssExtractPlugin.loader,
					{
						loader: "css-loader", // translates CSS into CommonJS
						options: {
							modules: {
								// auto: true,
								localIdentName: isProduction ? "[hash:base64]" : "[path][name]__[local]--[hash:base64:5]",
								// localIdentContext: path.resolve(__dirname, SRC_FOLDER),
							},
							importLoaders: 3
						}
					},
                    {
                        loader: "typed-css-modules-loader",
                    },
                    {
                        loader: "postcss-loader",
                    },
					{
					    loader: "stylus-native-loader",
					    options: {
							include: [
								`./${SRC_FOLDER}`
							],
					    }
					},
                ]
            },
@slightlyfaulty
Copy link
Owner

Sorry for the late reply, I somehow missed the notification for this issue 😅

I've tried to reproduce the issue on my side but I can't seem to get it to loop. Would it be possible for you to post your full webpack.config.js or set up a repro?

I'm also curious if this happens in watch mode or when just running a normal build?

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

No branches or pull requests

2 participants