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

Compiling loop? #1777

Open
lukecharle opened this issue Jan 30, 2023 · 1 comment
Open

Compiling loop? #1777

lukecharle opened this issue Jan 30, 2023 · 1 comment

Comments

@lukecharle
Copy link

lukecharle commented Jan 30, 2023

Current behaviour 💣

I'm using the following within my dev build in webpack:

new HtmlWebpackPlugin({
      filename: `../snippets/script-tags.liquid`,
      template: path.resolve(__dirname, '../templates/script-tags.html'),
      inject: false,
    }),

But this is just running a continue compiling and never stops:

Screenshot 2023-01-30 at 22 33 26

I have even used the basic setup:

new HtmlWebpackPlugin(),

I'm thinking this inserts my new file script-tags.liquid, which then triggers the watch to run it again thus creating the loop? How could I go about this file getting updated on each watch trigger but not trigger the watch to run again?

Expected behaviour ☀️

Should compile once unless I save a new file.

Reproduction Example 👾

Use the following code above

Environment 🖥

Screenshot 2023-01-30 at 22 34 26

@alexander-akait
Copy link
Collaborator

Sorry for delay, can you create reproducible test repo?

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