Closed mizdra closed 2 years ago
tcm .
should be equivalent to tsc '**/*.css'
. That is, the accepted extensions are implicitly limited to .css
. In the future, it should be improved to accept .less
and .scss
by adding an option like --ext
in eslint, but MPV does not need to go that far.
The extension pattern used by css-loader is as follows:
For the time being, I'm going to make the interface to require the specification of the extension. If automatic search for specific extensions becomes necessary, I will implement it.
I would like to change it to accept patterns without options. This is the interface used by eslint and prettier, and is also common. I think it is important to provide an interface that is as familiar as possible.
tcm --pattern 'src/**/*.module.css' .
tcm 'src/**/*.module.css'
In addition, I would like to deprecate the
--pattern
option.