jiangyuan / fis-postprocessor-postcss Goto Github PK
View Code? Open in Web Editor NEWfis postcss.
fis postcss.
fis-postprocessor-postcss
在安装成功后,默认情况下不会自动补全前缀,需要在添加下面的配置才可以
settings: {
postprocessor: {
postcss: {
autoprefixer: false, // 默认 true
cssnext: false, // 默认 false
customPlugin: function(plugins) { // 参数 plugins 是内置插件
plugins = plugins.push(require('postcss-border'));
return plugins; // 返回新的插件列表
}
}
}
}
文件目录结构如下:
-- page
-- static
-- widget
-- header
-- images
-- xx.jpg
-- index.less
-- index.vm
-- fis-conf.js
fis-conf.js 文件大致内容如下:
........
fis.config.merge({
roadmap: {
path: [
{
reg: /.*?([^\/]*(?:jpg|png|gif|jpeg))/i,
release: '/static/images/$1'
}
]
},
modules: {
postprocessor : {
// 安装 fis-postprocessor-postcss
sass: 'postcss',
scss: 'postcss',
css: 'postcss'
}
}
});
........
/widget/header/index.less 内容大致如下:
div {
background-image: url('images/xx.jpg');
}
然后,在jello release
后,图片地址发布位置正常,但fis-postprocessor-postcss
解析图片地址不正确,然后导致失败。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.