fis-preprocessor-inline

0.0.2 • Public • Published

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'
        }
    }
    ...
});

Readme

Keywords

none

Package Sidebar

Install

npm i fis-preprocessor-inline

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • fansekey