Open psychobolt opened 3 years ago
Can't resolve font files for sass files.
MDX:
import './styles';
SCSS:
/* styles.scss */ @use '@fontawesome/roboto/index';
ERROR in ./src/stories/styles.scss (./node_modules/resolve-url-loader??ref--15-1!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/stories/styles.scss) Module build failed (from ./node_modules/css-loader/dist/cjs.js): Error: Can't resolve './files/roboto-cyrillic-ext-400-normal.woff2' in
The bellow works in custom webpack settings without any error:
{ test: /\.s[ca]ss$/, use: [ 'style-loader', 'css-loader', { /* include resolve-url-loader' */ loader: 'resolve-url-loader', options: { debug: true }, }, 'sass-loader', ], },
Refer to: https://github.com/webpack-contrib/sass-loader#problems-with-url
Was about to ask for this. Would the maintainers be open for a pull request?
Describe the bug
Can't resolve font files for sass files.
Steps to reproduce the behavior
MDX:
SCSS:
The bellow works in custom webpack settings without any error: