perfect-scrollbar-vue2
Version:
Vue.js wrapper for perfect scrollbar
15 lines (14 loc) • 403 B
JavaScript
var path = require('path')
var postcssImport = require('postcss-import')
var cssnano = require('cssnano')
module.exports = ctx => ({
plugins: {
'postcss-import': {
resolve (id, basedir) {
if (/^~/.test(id)) return path.resolve('./node_modules', id.replace('~', ''))
return path.resolve(basedir, id)
}
},
'cssnano': ctx.env === 'production'
}
})