This is my webpack configuration but I am trying to import scss styles that I declared in :export block but I get an empty JSON.
Unsurprisingly, there are other people having the same issue:
config.webpack.js
{
test: /\.(css|scss|sass)$/,
exclude: /node_modules/,
use: [
'style-loader',
{
loader: MiniCssExtractPlugin.loader,
},
'css-loader',
'resolve-url-loader',
'sass-loader',
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: [require('autoprefixer')()],
},
},
],
}
I appreciate any help or hint.
:exportblock" - Can you clarify what you mean? Can you share the exact syntax of your importing and exporting?