Postcss TypeError:require不是函数

代码示例

0
0

postcss TypeError:require不是函数

/* 
    This type of setup worked for me, require calls modified
	to suit my setup.
	You will have to enter the postcss-* pkgs listed in your
	package.json
*/

module.exports = (ctx) => {
  return {
    map: ctx.env === 'development' ? 'inline' : false,
    plugins: [
        require('postcss-csso')()
    ]
  } 
}

类似页面

带有示例的类似页面

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................