Giter Club home page Giter Club logo

Comments (5)

tcoopman avatar tcoopman commented on August 16, 2024

Can you show me an example of this or a plugin that does this?

I'm not sure if this loader should do this though, but I'm willing to take a look at it.

from image-webpack-loader.

nesheroj avatar nesheroj commented on August 16, 2024

there are a few webs and tools that do so, like Shoebox, Visual Studio web essentials, imagepacker, there is probably a node package somewhere that does it.

from image-webpack-loader.

tcoopman avatar tcoopman commented on August 16, 2024

You mean something like this: https://github.com/jkphl/gulp-svg-sprite?

How do you want to reference your images then?
I suppose you no do:

var globe = require('globe.svg');
var tree = require('tree.svg);

And you want those requires to be rewritten to point to the place in the sprite. Or do you mean something else?

from image-webpack-loader.

nesheroj avatar nesheroj commented on August 16, 2024

I really don't think this fits in this loader's scope. It's a nice idea for a loader, but I'd keep those two concerns separated.

from image-webpack-loader.

tcoopman avatar tcoopman commented on August 16, 2024

I would rather not have this in the loader too. But bundling the svgs without being able to use them directly is not very useful I guess.

Either way, I would say that bundling of images and changes the requires is something for a different loader and out of scope for this one, so I'm going to close this item.

from image-webpack-loader.

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.