Skip to content

ejs files not recompiled on change #3

Open
@rowild

Description

@rowild

I have this setup:

module: {
    rules: [{
        test: /\.ejs$/,
        exclude: /(node_modules)/,
        use: [{
            loader: 'compile-ejs-loader',
            options: {...}
          }
        }]
      },
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: '!!compile-ejs-loader!./src/index.ejs',
        filename: 'index.html',
        title: 'something',
        minify: {... },
      }),
   ]
}

Whenever I edit something in a ejs file, webpack 4 is not re-compiling the changes.

Why is this happening? Anything that I am doing wrong here?
Advice much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions