GithubHelp home page GithubHelp logo

gulp-ozjs's People

Contributors

gitter-badger avatar kebot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

dexteryy tthallos

gulp-ozjs's Issues

速度太慢

hi,
公司的项目用的是ozjs,之前一直在用grunt做task runner,今天我试着用gulp跑了下项目,发现ozma这一步的时间有点太长了。grunt只用2s,gulp用了22s。

观察了一下,
unrecognized module: backbone-validation-src
undefined module: d3-src

这两句输出之后停了很长一段时间。
有什么办法么?

路径问题

比如现在有examples目录

examples
├── gulpfile.js
├── public
└── src
    ├── main.js
    └── modules
        └── oz.js

gulpfile.js

gulp.task('ozma', function(){
  return gulp.src('src/main.js')
    .pipe(ozma({
      baseUrl: 'src',
      disableAutoSuffix: true,
      loader: 'src/modules/oz.js'
    }))
    .pipe(gulp.dest('public'));
})

最后在public下会是这个路径

public/src/main.js

vinyl-fs的dest方法里有个saveFile方法,发现传过来的file.relative就是src/main.js。试了下其他的gulp插件,传进来的file.relative都是main.js。

这个有什么好的解决办法吗?

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.