GithubHelp home page GithubHelp logo

gulp-bundle's People

Contributors

jonkemp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gulp-bundle's Issues

'useref' is not in the npm registry.

Howdy, It appears useref has been unpublished from the npm repository see: https://www.npmjs.org/package/useref making npm throw an error message when i try to install gulp-bundle

npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'useref' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'gulp-bundle'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

Unable to install - Fails with npm ERR! 404 'useref' is not in the npm registry.

Running npm install gulp-bundle --save-dev results in the following error:

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/useref
npm ERR! 404
npm ERR! 404 'useref' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'gulp-bundle'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Inplace or destination path

I'm trying this plugin, but I'm wondering how to approach the issue where when you've got a certain number of html files containing the bundle feature and a certain other number not. I see two approaches:

  • eiher do the 'bundle' inline and replace the files after reading
  • use a target, but just copy over the ones without the need of bundling them.

Please advise

Make this a gulp plugin

Maybe what I'm thinking would already be possible, but I think it could be worth covering this to a gulp plugin instead of how it currently works.

I want to be able to run gulp-replace on files before they get handled by bundle. I think this would be easiest to accomplish via code somewhat like this:

gulp.task('html', resources, function() {
  return gulp.src('**/*.html')
    .pipe(replace(/@@value?/g, 'newval'))
    .pipe(bundle())
    .pipe(gulp.dest('dist'));
});

Also, the conversion to a gulp plugin may make the use of this a little less confusing. Is there any compelling reason to not convert this to a plugin (besides backwards compatibility)? For backwards compatibility, we could make it so that if the first argument is a string, handle the way things are handled currently. If it's anything else, go with the new way.

'useref' is not in the npm registry.

Hi,

Just tried to install gulp-bundle from npm, got this:

npm ERR! 404 Not Found
npm ERR! 404
npm ERR! 404 'useref' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'gulp-bundle'

Question

Its not terribly clear how this works. Is appdir the path to the *.html files or specifying the root for the search for the assets (usemin style).

Is there a way to specify where the modified *.html files go or do they always go in the same folder as the assets?

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.