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
Unable to watch the changes on the source CSS file once imported #1
Comments
Looks like it's common problem of some other babel plugins. @fengyuanchen |
I use this plugin in a TypeScript project: module: {
rules: [
{
test: /\.ts$/,
use: [
{
loader: 'babel-loader',
options: {
plugins: [
[
'postcss',
{
test: /\.css$/,
postcss: true,
},
],
],
},
},
{
loader: 'ts-loader',
},
],
}
]
} |
I see, it seems the |
How is related ts-loader and babel-plugin? |
Just see the config segment of Webpack's |
I import a css file into a ts file in my project: // index.ts
import utils from 'utils.ts';
import style from 'index.css'; |
It does not work for me. |
Works fine for one time build, but not local dev server (e.g., the development mode of Webpack).
The text was updated successfully, but these errors were encountered: