Answer the question
In order to leave comments, you need to log in
How to bundle first css styles and then scss?
At the very beginning of the project, I imported the styles of a third-party library in css format:
// не знаю, в чем была проблема сделать стили изолированно, но не об этом сейчас
import '@vkontakte/vkui/dist/vkui.css';
{
test: /\.(css|scss|sass)$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
modules: {
exportGlobals: true,
localIdentName: '[local]--[hash:base64:5]',
auto: /\.module\.\w+$/i,
},
},
},
{
loader: 'sass-loader',
},
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: [
[
autoprefixer({
browsers: ['> 0%'],
}),
],
],
},
sourceMap: true,
},
},
],
},
import 'normalize.css';
import '@vkontakte/vkui/dist/vkui.css';
export const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk)));
console.log('store', store.getState());
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question