Closed
Description
Hey,
is it possible to get the path of an imported CSS/SCSS file with mini-css-extract-plugin?
const path = await import(’src/design.scss’);
//path should be something like /app/3.style.ba3f5c22e233291aa0aa.css
I tried it with
test: /\.scss$/,
use: [
{
loader: 'file-loader'
},
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
}, {
loader: 'resolve-url-loader'
}, {
loader: 'sass-loader'
}]
But file-loader just returns the SASS file and not the extracted CSS File.
Metadata
Metadata
Assignees
Labels
No labels