fis-preprocessor-inline

inline

npm install fis-preprocessor-inline
11 downloads in the last week
22 downloads in the last month

fis-preprocessor-inline

跟模板同名,并且有.inline.css.inline.js后缀的文件进行自动内嵌。css内嵌到模板头部, js统一收集到body后面。

注: 添加一个.inline.css或者.inline.js文件需要清缓存fis release -c

install

$ npm install -g fis-preprocessor-inline

config

fis.config.merge({
    ...
    modules: {
        preprocessor: {
            tpl: 'inline'
        }
    }
    ...
});
npm loves you