How to use the fis3.match function in fis3

To help you get started, we’ve selected a few fis3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fex-team / fis3-hook-commonjs / test / index.js View on Github external
//},
        scriptPlaceHolder: "",
        stylePlaceHolder: '',
        resourcePlaceHolder: '',
        resourceType: 'auto',
        processor: {
          '.html': 'html'
        },
        obtainScript: true,
        obtainStyle: true,
        useInlineMap: false
      })

    });
// fis3 release production
    fis
      .match('**', {
        useHash: false,
        release: '/static/$0'
        // domain: 'http://aaaaa.baidu.com/xpy'

      })

      .match('demo.js', {
        //optimizer: fis.plugin('uglify-js'),
        packTo: "x.js",
        isMod: true
      })
      .match('demo2.js', {
        //optimizer: fis.plugin('uglify-js'),
        packTo: "x.js",
        isMod: false
github fex-team / fis3-hook-commonjs / test / index.js View on Github external
beforeEach(function() {
    // default settings. fis3 release
    var root2 = path.join(__dirname, 'xpy');
    _.del(root2);

    fis.match('*', {
      deploy: fis.plugin('local-deliver', {
        to: root2
      })
    });
    fis.media().set("namespaceConnector",":");
    
    hookSelf({
      baseUrl: ".",
      forwardDeclaration: true,//依赖前置,
      skipBuiltinModules: false,
      paths: {
        abc: '/module/jquery.js'
      },
      packages: [
        {
          name: 'module',
github fex-team / fis3-hook-commonjs / test / index.js View on Github external
main: 'c.js'
        },
        {
          name: 'cc2',
          location: 'common:module2/cc',
          main: 'c.js'
        }
      ],
      shim: {
        'module/b.js': {
          deps: ['module/a.js'],
          exports: 'xc'
        }
      }
    });
    fis.match('::packager', {
      postpackager: fis.plugin('loader', {
        //allInOne: {
        //  ignore: '**/a.js',
        //  includeAsyncs: true,
        //  css:"pkg/aa.css"
        //
        //},
        scriptPlaceHolder: "",
        stylePlaceHolder: '',
        resourcePlaceHolder: '',
        resourceType: 'auto',
        processor: {
          '.html': 'html'
        },
        obtainScript: true,
        obtainStyle: true,
github fex-team / fis3-postpackager-loader / test / index.js View on Github external
it('useInlineMap:false', function() {
    fis.match('::packager', {
      postpackager: wrapLoader({
        allInOne: true,
        scriptPlaceHolder: "",
        stylePlaceHolder: '',
        resourcePlaceHolder: '',
        resourceType: 'auto',
        processor: {
          '.html': 'html'
        },
        obtainScript: true,
        obtainStyle: true,
        useInlineMap: false
      })

    });
github fex-team / fis3-postpackager-loader / test / index.js View on Github external
'.html': 'html'
        },
        obtainScript: true,
        obtainStyle: true,
        useInlineMap: true
      })

    });

    fis.match('*', {
      deploy: fis.plugin('local-deliver', {
        to: root+"/xpy"
      })
    })

    fis.match("*.html", {
      useHash: false,
      packTo:root+"/xpy/aaaa.html"
    });

    fis.match("**/*.js", {
      release: '/static/$0'
    });

    fis.match("**/*.css", {
      release: '/static/$0'
    });

    release({
      unique: true
    }, function() {
      console.log('Done');
github fex-team / fis3-postpackager-loader / test / index.js View on Github external
})

    });

    fis.match('*', {
      deploy: fis.plugin('local-deliver', {
        to: root+"/xpy"
      })
    })

    fis.match("*.html", {
      useHash: false,
      packTo:root+"/xpy/aaaa.html"
    });

    fis.match("**/*.js", {
      release: '/static/$0'
    });

    fis.match("**/*.css", {
      release: '/static/$0'
    });

    release({
      unique: true
    }, function() {
      console.log('Done');
    });

    var str = fis.util.read(path.join(root, 'xpy', 'static', 'pkg', 'main.html_aio.js'));
    expect(str.indexOf("567")>0).to.be.true;
    expect(str.indexOf("1234")>0).to.be.true;
github fex-team / fis3-postpackager-loader / test / index.js View on Github external
fis.match('*', {
      deploy: fis.plugin('local-deliver', {
        to: root+"/xpy"
      })
    })

    fis.match("*.html", {
      useHash: false,
      packTo:root+"/xpy/aaaa.html"
    });

    fis.match("**/*.js", {
      release: '/static/$0'
    });

    fis.match("**/*.css", {
      release: '/static/$0'
    });

    release({
      unique: true
    }, function() {
      console.log('Done');
    });

    var str = fis.util.read(path.join(root, 'xpy', 'static', 'pkg', 'main.html_aio.js'));
    expect(str.indexOf("567")>0).to.be.true;
    expect(str.indexOf("1234")>0).to.be.true;
    expect(str.indexOf("wang='1'")>0).to.be.true;
    expect(str.indexOf("x =1")>0).to.be.true;
    expect(str.indexOf("abc")>0).to.be.true;
github fex-team / fis3-postpackager-loader / test / index.js View on Github external
},
        scriptPlaceHolder: "",
        stylePlaceHolder: '',
        resourcePlaceHolder: '',
        resourceType: 'auto',
        processor: {
          '.html': 'html'
        },
        obtainScript: true,
        obtainStyle: true,
        useInlineMap: true
      })

    });

    fis.match('*', {
      deploy: fis.plugin('local-deliver', {
        to: root+"/xpy"
      })
    })

    fis.match("*.html", {
      useHash: false,
      packTo:root+"/xpy/aaaa.html"
    });

    fis.match("**/*.js", {
      release: '/static/$0'
    });

    fis.match("**/*.css", {
      release: '/static/$0'

fis3

fis 3.0

BSD-2-Clause
Latest version published 1 year ago

Package Health Score

54 / 100
Full package analysis