Skip to content

added sass modules - #1

Open
cricket-creator wants to merge 1 commit into
masterfrom
sass-modules
Open

cricket-creator wants to merge 1 commit into
masterfrom
sass-modules

Conversation

@cricket-creator

Copy link
Copy Markdown

No description provided.

Comment thread src/context/Auth.tsx Outdated
Comment thread src/pages/login/login.tsx Outdated
Comment thread tsconfig.json Outdated
Comment thread tsconfig.json
Comment thread webpack.config.js
Comment thread webpack.config.js Outdated
Comment thread webpack.config.js Outdated
{
test: /\.module.s[ac]ss$/i,
use: [
process.env.NODE_ENV !== 'production'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Будет ли такое, что на проде одни стили, а на деве другие?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommended
For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on. This can be achieved by using the mini-css-extract-plugin, because it creates separate css files. For development mode (including webpack-dev-server) you can use style-loader, because it injects CSS into the DOM using multiple and works faster.

Comment thread webpack.config.js Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants