Coder Social home page Coder Social logo

Comments (4)

hefangshi avatar hefangshi commented on June 15, 2024

autoload的注释是会被清除的,不过你的情况是不是引入了一个相同的资源两次,导致第二个注释没被消除。

from fis-postpackager-autoload.

fengsx avatar fengsx commented on June 15, 2024

配置是这样的
fis.config.set('modules.postpackager', 'autoload');
fis.config.set('modules.postpackager', 'autoload, simple');
fis.config.set('settings.postpackager.simple.autoCombine', true);
fis.config.set('settings.postpackager.simple.autoReflow', true);
fis.config.set('roadmap.domain', '127.0.0.1:8080');
fis.config.set('roadmap.path', [
{
reg : /^/views/views/(..tpl)/i,
release : '/views/$1'
},
{
reg : /^/aidebole/web/web/(.)/i,
release : '/aidebole/web/$1'
}
]);

fis.config.merge({
project : {
include : ['/aidebole/web/_web/', 'views/_views/']
}
});

引入大概是这样

结果最后没有被清除
也没有引用两次啊

from fis-postpackager-autoload.

hefangshi avatar hefangshi commented on June 15, 2024

编译没有清除的结果发来看看

from fis-postpackager-autoload.

hefangshi avatar hefangshi commented on June 15, 2024

这个require不是autoload引入的,属于FIS的资源声明注释,所以不会去除,你希望去除的话,可以考虑用插件做一下压缩

https://github.com/fouber/fis-optimizer-html-minifier

from fis-postpackager-autoload.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.