Skip to content

Commit

Permalink
fix: deprecate scss
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofan2406 committed Jun 23, 2022
1 parent e62b170 commit 91485e8
Show file tree
Hide file tree
Showing 71 changed files with 8 additions and 5,552 deletions.
86 changes: 0 additions & 86 deletions .sass-lint.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Technology:
- [React](http://facebook.github.io/react/)
- ES201x (using [Babel](http://babeljs.io)\)
- [Webpack](https://github.com/webpack/webpack)
- [SCSS](http://sass-lang.com)
- [ESLint](http://eslint.org)
- [Autoprefixer](https://github.com/postcss/autoprefixer)

Expand Down
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const env = {
['@babel/plugin-transform-runtime', { regenerator: true }],
'jsx-remove-data-test-id',
inlineSvgPlugin,
['transform-remove-imports', { test: '\\.(scss|css)$' }],
['transform-remove-imports', { test: '\\.css$' }],
],
},
cjs: {
Expand All @@ -48,7 +48,7 @@ const env = {
['@babel/plugin-transform-runtime', { regenerator: true }],
'jsx-remove-data-test-id',
inlineSvgPlugin,
['transform-remove-imports', { test: '\\.(scss|css)$' }],
['transform-remove-imports', { test: '\\.css$' }],
],
},
};
Expand Down
3 changes: 1 addition & 2 deletions config/webpack.config.dev.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = webpackMerge(commonConfig, {
},
},
{
test: /\.((c|sc)ss)$/i,
test: /\.css$/i,
use: [
MiniCssExtractPlugin.loader,
{
Expand All @@ -77,7 +77,6 @@ module.exports = webpackMerge(commonConfig, {
{
loader: 'postcss-loader',
},
'sass-loader',
],
},
{
Expand Down
3 changes: 1 addition & 2 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = webpackMerge(commonConfig, {
},
},
{
test: /\.((c|sc)ss)$/i,
test: /\.css$/i,
sideEffects: true,
use: [
'style-loader',
Expand All @@ -80,7 +80,6 @@ module.exports = webpackMerge(commonConfig, {
{
loader: 'postcss-loader',
},
{ loader: 'sass-loader' },
],
},
{
Expand Down
3 changes: 1 addition & 2 deletions config/webpack.config.dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports = webpackMerge(commonConfig, {
},
},
{
test: /\.((c|sc)ss)$/i,
test: /\.css$/i,
use: [
MiniCssExtractPlugin.loader,
{
Expand All @@ -96,7 +96,6 @@ module.exports = webpackMerge(commonConfig, {
{
loader: 'postcss-loader',
},
'sass-loader',
],
},
{
Expand Down
3 changes: 1 addition & 2 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = webpackMerge(commonConfig, {
loader: 'babel-loader',
},
{
test: /\.((c|sc)ss)$/i,
test: /\.css$/i,
use: [
MiniCssExtractPlugin.loader,
{
Expand All @@ -100,7 +100,6 @@ module.exports = webpackMerge(commonConfig, {
{
loader: 'postcss-loader',
},
'sass-loader',
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__mocks__/fileMock.js',
'\\.(css|less|scss)$': 'identity-obj-proxy',
'\\.css$': 'identity-obj-proxy',
},
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
Expand Down
Loading

0 comments on commit 91485e8

Please sign in to comment.