-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade with-carbon-components to built-in SCSS (#10321)
Co-authored-by: Joe Haddad <[email protected]>
- Loading branch information
1 parent
81fd704
commit 157a7a7
Showing
8 changed files
with
14 additions
and
47 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,23 +1,5 @@ | ||
const withSass = require('@zeit/next-sass') | ||
const withImages = require('next-images') | ||
|
||
module.exports = withImages( | ||
withSass({ | ||
webpack(config) { | ||
config.module.rules.push({ | ||
test: /\.(png|svg|eot|otf|ttf|woff|woff2)$/, | ||
use: { | ||
loader: 'url-loader', | ||
options: { | ||
limit: 100000, | ||
publicPath: './', | ||
outputPath: 'static/', | ||
name: '[name].[ext]', | ||
}, | ||
}, | ||
}) | ||
|
||
return config | ||
}, | ||
}) | ||
) | ||
module.exports = { | ||
experimental: { | ||
scss: true, | ||
}, | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import '../styles/custom-theme.scss' | ||
|
||
function MyApp({ Component, pageProps }) { | ||
return <Component {...pageProps} /> | ||
} | ||
|
||
export default MyApp |
This file was deleted.
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './export.scss'; | ||
@import '~carbon-components/scss/globals/scss/styles.scss'; |
File renamed without changes.