-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from scout-ch/craco-with-sass
move from less to sass, move fonts to styling I moved the commits configuring React from scratch, moving away from Create React App without ejecting, to it's separate branch as the overhead is not justifiable currently. For now, we can continue using craco with sass.
- Loading branch information
Showing
73 changed files
with
339 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
const CracoLessPlugin = require("craco-less"); | ||
|
||
const emotionBabelPreset = require("@emotion/babel-preset-css-prop").default( | ||
undefined, | ||
{} // emotion preset options | ||
); | ||
|
||
module.exports = { | ||
plugins: [{ plugin: CracoLessPlugin }], | ||
babel: { | ||
plugins: [ | ||
...emotionBabelPreset.plugins | ||
] | ||
} | ||
style: { | ||
sass: { | ||
loaderOptions: { | ||
// Prefer 'sass' (dart-sass) over 'node-sass' if both packages are installed. | ||
implementation: require('sass'), | ||
// Workaround for this bug: https://github.com/webpack-contrib/sass-loader/issues/804 | ||
webpackImporter: false, | ||
}, | ||
}, | ||
}, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.