rsnext/packages/next/build
Jairo Tylera e66bcfa838
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
2020-05-23 13:37:48 +00:00
..
babel chore(next/build/babel): missing types (#13189) 2020-05-21 12:57:04 +00:00
bundles Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
output Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
plugins [Experimental] Only consider files within plugins (#12943) 2020-05-20 04:05:29 +00:00
polyfills Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
profiler Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
webpack Add support for sass-loader prependData option (#12277) 2020-05-23 13:37:48 +00:00
compiler.ts Update compiler.ts Improve TypeScript typings (#11074) 2020-04-06 17:58:35 +02:00
entries.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
generate-build-id.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
index.ts Record presence of reportWebVitals (#13155) 2020-05-20 18:44:39 +00:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
spinner.ts node-fetch, ora 2020-03-30 16:26:25 -04:00
utils.ts Record presence of reportWebVitals (#13155) 2020-05-20 18:44:39 +00:00
webpack-config.ts GranularChunks conformance check (#11710) 2020-05-20 06:40:23 +00:00
write-build-id.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00