Skip to content
The React Framework
JavaScript TypeScript Other
Branch: canary
Clone or download

Latest commit

Tylerian Add support for sass-loader prependData option (#12277)
This PR adds support for prepending sass code before the actual entry file.

It's common for developers to import their sass mixins and variables once on their project config so they don't need to import them on every file that requires it. Frameworks like gatsby and nuxt.js already support that handy feature.

The way it works is:

```
/// next.config.js
module.exports = {
  experimental: {
    sassOptions: {
      prependData: `
        /// Scss code that you want to be
        /// prepended to every single scss file.
      `,
    },
  },
}
```

Fixes #11617 and duplicates
Latest commit e66bcfa May 23, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Migrate PR stats action into Next.js repo (#13177) May 21, 2020
.vscode Add support for debugging Next.js core (#13101) May 20, 2020
bench Upgrade to Prettier 2 (#13061) May 18, 2020
docs docs(debugging): explain how to debug in Chrome DevTools/VS Code (#10807 May 23, 2020
errors Add error when exporting pages with fallback: true (#13063) May 19, 2020
examples Rename import to solve conflicting usage of Error constructor (#13256) May 22, 2020
packages Add support for sass-loader prependData option (#12277) May 23, 2020
test Add support for sass-loader prependData option (#12277) May 23, 2020
.eslintignore Migrate PR stats action into Next.js repo (#13177) May 21, 2020
.eslintrc.json Enable jest/no-try-expect (#13124) May 20, 2020
.gitignore Migrate PR stats action into Next.js repo (#13177) May 21, 2020
.npmrc Remove version prefix Oct 1, 2018
.prettierignore Migrate PR stats action into Next.js repo (#13177) May 21, 2020
.prettierignore_staged Upgrade to Prettier 2 (#13061) May 18, 2020
.prettierrc.json Update Prettier configuration Apr 26, 2019
CODE_OF_CONDUCT.md Update Code of Conduct email address (#12108) Apr 22, 2020
UPGRADING.md Move upgrading guide to /docs (#10727) Feb 28, 2020
azure-pipelines.yml Update to track test timings separate for Azure and Actions (#12083) Apr 21, 2020
check-pre-compiled.sh Pre-ncc compiled packages to prevent re-nccing unnecessarily (#11569) Apr 7, 2020
contributing.md Updated example template in contributing.md (#11968) May 2, 2020
jest.config.js Use the jest-circus test runner (#12974) May 16, 2020
lerna.json v9.4.2 May 20, 2020
license.md Update year on license files Apr 21, 2020
lint-staged.config.js Upgrade to Prettier 2 (#13061) May 18, 2020
package.json Migrate PR stats action into Next.js repo (#13177) May 21, 2020
publish-release.sh Make sure to exit publish script with correct code (#10310) Jan 28, 2020
readme.md Monorepo (#5341) Sep 30, 2018
run-tests.js Upgrade to Prettier 2 (#13061) May 18, 2020
test-file.txt Add additional file serving tests (#12479) May 4, 2020
yarn.lock bug fixes for Lint routing (#13111) May 21, 2020

readme.md

You can’t perform that action at this time.