mirror of
https://github.com/Aviortheking/games.git
synced 2025-04-22 19:02:09 +00:00
23 lines
489 B
JavaScript
23 lines
489 B
JavaScript
const stylus = require('@zeit/next-stylus')
|
|
const css = require('@zeit/next-css')
|
|
const withPlugins = require('next-compose-plugins')
|
|
const {PHASE_DEVELOPMENT_SERVER} = require('next/constants')
|
|
|
|
module.exports = withPlugins([
|
|
[stylus, {
|
|
cssModules: true,
|
|
cssLoaderOptions: {
|
|
localIdentName: "[hash:base64:6]",
|
|
},
|
|
[PHASE_DEVELOPMENT_SERVER]: {
|
|
cssLoaderOptions: {
|
|
localIdentName: "[path][name]__[local]"
|
|
}
|
|
}
|
|
}],
|
|
[css, {
|
|
cssModules: false
|
|
}]
|
|
]
|
|
)
|