mirror of
https://github.com/Aviortheking/next-template.git
synced 2025-04-22 18:52:09 +00:00
34 lines
614 B
JavaScript
34 lines
614 B
JavaScript
const stylus = require('@zeit/next-stylus')
|
|
const purgeCSS = require('next-purgecss')
|
|
const withPlugins = require('next-compose-plugins')
|
|
|
|
module.exports = withPlugins([
|
|
[stylus, {
|
|
// cssModules: true
|
|
}],
|
|
[purgeCSS, {
|
|
purgeCssPaths: [
|
|
'pages/**/*',
|
|
'components/**/*',
|
|
'styl/**/*'
|
|
],
|
|
purgeCSS: {
|
|
content: [
|
|
'components/**/*.tsx',
|
|
'pages/**/*.tsx'
|
|
]
|
|
}
|
|
}],
|
|
], {
|
|
exportTrailingSlash: true,
|
|
plugins: [
|
|
["styled-jsx/babel", {
|
|
optimizeForSpeed: true,
|
|
vendorPrefixes: true,
|
|
sourceMaps: true,
|
|
plugins: ["styled-jsx-plugin-stylus"]
|
|
}]
|
|
]
|
|
}
|
|
)
|