您的位置:首页 > Web前端 > CSS

Without `from` option PostCSS could generate wrong source map and will not find Browserslist config.

2018-01-25 15:23 399 查看
错误信息

Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.

解决方法

在“/node_modules/@ionic/app-scripts/dist/sass.js”路径的“sass.js”文件,在postcssOptions参数中添加“from: undefined”。添加后效果如下:

[plain] view
plain copy

var postcssOptions = {  

    from: undefined,  

    to: path_1.basename(sassConfig.outFile),  

    map: autoPrefixerMapOptions  

};  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐