GithubHelp home page GithubHelp logo

Comments (5)

zont avatar zont commented on August 31, 2024

Maybe you need alternate search path?

<!-- build:<pipelineId>(alternate search path) <path> -->

from gulp-usemin.

mzgajner avatar mzgajner commented on August 31, 2024

Yes, tried that, but that only affects input, where it looks for files, so I can define:

<!-- build:js(/public-html/uncompiled-js/) /js/compiled.js -->

And it will correctly find the uncompiled JS files, but the compiled file will still be stored to /some-path-where-template-is-compiled/js/compiled.js. I cannot separately define where to store compiled template and where to store compiled JS.

from gulp-usemin.

zont avatar zont commented on August 31, 2024

Maybe:

var gulpFilter = require('gulp-filter');
var jsFilter = gulpFilter('**/*.js');

 gulp.src('./*.html')
    .pipe(usemin({...}))
    .pipe(jsFilter)
    .pipe(gulp.dest('folder_for_js/'));
    .pipe(jsFilter.restore())
    .pipe(gulp.dest('build/'));

from gulp-usemin.

mzgajner avatar mzgajner commented on August 31, 2024

Looks promising, thanks!

from gulp-usemin.

dgwaldo avatar dgwaldo commented on August 31, 2024

@mzgajner Just made this branch for use in a build process at work, added ability decouple bundle and build path, as well as ability to add an async tag. https://github.com/dgwaldo/gulp-usemin

from gulp-usemin.

Related Issues (20)

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.