riot / webpack-loader

Riot official webpack loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging doesn't work on watch

SassNinja opened this issue · comments

I'm using the riot-tag-loader and have enabled the watch mode in my webpack config.

$ webpack --watch --config webpack.dev.js
module: {
    rules: [
        {
            test: /.tag$/,
            exclude: /node_modules/,
            use: [
                {
                    loader: 'file-loader',
                    options: {
                        name: '[name].tag.js',
                        outputPath: 'riot'
                    }
                },
                {
                    loader: 'riot-tag-loader',
                    options: {
                        hot: false,
                        compact: true,
                        modular: true,
                        type: 'es6',
                        style: 'scss'
                    }
                }
            ]
        }
    ]
}

Works initially correct, meaning the tags get compiled.

When I change the tag afterwards (while watched) is gets recompiled but this is not visible in the terminal!
--info-verbosity verbose doesn't help either.

When I change another JS file (also watched) it's visible in the terminal.
So I think the riot-tag-loader doesn't provide the necessary logging to webpack's watchmode.

Is this not supported or is there any mistake in my webpack config?

I'm using webpack 4.6.0

Are you able to reproduce this issue also with the newest loader version? Could you setup a repo to check the issue please?

closing this issue since no feedback was provided.