Giter Site home page Giter Site logo

fis3-hook-browserify's Introduction

fis3-hook-browserify

a fis3 hook plugin for browserify

usage

可以跨模块使用

需要在当前模块下的fis-conf.js文件里配置如下信息:

fis.hook('browserify', {
  // 通用模块目录路径,一般模块命名common
  commonModulePath: __dirname + '/common',
  // browserify文件存放路径
  commonBrowserify: '/client/browserify/',
  // 通用模块命名空间
  commonModuleName: 'common'
});

// 不需要再编译此目录下的js文件
fis.match('client/browserify/*.js', {
  useCompile: false,
})

示例

var querystring = require('querystring');
console.log(querystring);

编译后代码如下:

var querystring = require('common:browserify/querystring.js');
console.log(querystring);

同时会在common模块下的commonBrowserify路径生成browserify文件:querystring.js

fis3-hook-browserify's People

Contributors

sobird avatar

Watchers

 avatar  avatar

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.