Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
css、js inline方案
branch: master
Failed to load latest commit information.
test/project test file
.gitignore npm and git ignore
.npmignore npm and git ignore
README.md update README.md
index.js 增加对其他变种css,js的支持,如less
package.json version @0.0.2

README.md

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'
        }
    }
    ...
});
Something went wrong with that request. Please try again.