Skip to content

Commit

Permalink
Update Next.js installation instructions (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
couds authored May 14, 2020
1 parent 18fb211 commit 30a3f51
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ Now on your `next.config.js` configure your sass to include the directory where

```javascript
const withSass = require('@zeit/next-sass')
const withTM = require('next-transpile-modules');

module.exports = withSass(withTM({
transpileModules: ['react-bulma-components'],
sassLoaderOptions: {
includePaths: ["./src"]
const withTM = require('next-plugin-transpile-modules');

module.exports = withTM(withSass({
transpileModules: ['react-bulma-components'], // Tell next to transpile the react-bulma-components module
// NOTE: this also allow to use abolute import from this folder not only for the _variables.sass file
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config.resolve.modules.push('./pages'); // Add to webpack configuration the folder where you put the _variables file
return config
},
}))
```
Expand Down

0 comments on commit 30a3f51

Please sign in to comment.