初始化项目,添加 favicon.ico、screenshot.png 等静态资源文件,以及 Vue、TailwindCSS 等依赖项。配置了 Vite 和 PostCSS,并生成了基本的项目结构。
12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
let objectify = require('./objectifier')
|
|
|
|
module.exports = function processResult(result) {
|
|
if (console && console.warn) {
|
|
result.warnings().forEach(warn => {
|
|
let source = warn.plugin || 'PostCSS'
|
|
console.warn(source + ': ' + warn.text)
|
|
})
|
|
}
|
|
return objectify(result.root)
|
|
}
|