Giter VIP home page Giter VIP logo

Comments (15)

joshwiens avatar joshwiens commented on May 31, 2024 2

@bhovhannes - I'm afraid everyone has gotten ahead of themselves. A few things right out of the gate.

  • This needs to be discussed by the webpack-contrib owners.
  • There are legal considerations as we are a part of the JavaScript Foundation.
  • We do not nor will we ever use Greenkeeper in contrib.
  • This discussion will be moved over to https://github.com/webpack-contrib/organization/issues where it should have been to begin with.
  • The idea in whatever final form will be discussed and if it makes sense for both groups wither myself or @bebraw will get in touch.

from svg-url-loader.

bhovhannes avatar bhovhannes commented on May 31, 2024

In general I am ok with that. However we should discuss the details. Where is the correct place for such discussion?

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@bhovhannes good news!

from svg-url-loader.

bhovhannes avatar bhovhannes commented on May 31, 2024

@evilebottnawi, can you send me an invite for webpack slack team? I think I need it to sign in...

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@bhovhannes oh sorry, gave the wrong link https://webpack.slack.com/messages/C1LUX2DS9/ 😄 or we can discussion about this here, if you are comfortable

from svg-url-loader.

bhovhannes avatar bhovhannes commented on May 31, 2024

@evilebottnawi I cannot sign in to webpack team on slack, because I don't have an account there. So, let's speak here. Please bring in any people from webpack/webpack-contrib you feel it will be nice to participate in discussion.

Here is how I see the current differences between svg-url-loader and url-loader.

  1. My plan for svg-url-loader is to add option to minimize imported SVGs using SVGO.
  2. svg-url-loader has tests, which run on Travis automatically.
  3. svg-url-loader repo is greenkeeper enabled.

Regarding 1.
That can be implemented in a separate loader and these 2 loaders may work in tandem, but minimizing is so common task that I think it will be better to have it built-in in the svg-url-loader.
I am not sure if minimizing SVGs is something url-loader should do.

Regarding 2.
Tests should be added to url-loader as well. Only after testing infrastructure will be ready we can start merge of svg-url-loader.

Regarding 3.
I cannot enable greenkeeper on url-loader, as I am not an admin of webpack/webpack-contrib. I will miss its PRs.

I think separate issues should be opened for each of mentioned points in url-loader repo in order to proceed effectively. @evilebottnawi, what do you think?

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@bhovhannes

My plan for svg-url-loader is to add option to minimize imported SVGs using SVGO.

Sounds good, each loader can works in minify mode. But url-loader handle not only svg and maybe it is be related to compress/compress-images/image/imagemin-loader. This would keep the compression options (for imagemin) in one place, but we can think about this more and we can will find to a common decision. Now we can https://github.com/Klathmon/imagemin-webpack-plugin (not good solution because for this purpose best be loader, but some plugins, example CopyWebpackPlugin can copying image also, svg also, this will be a small overload if svg-url/url-loader will do it) and https://github.com/tcoopman/image-webpack-loader(It seems to be outdated and have weird name, best for me imagemin/compress-image-loader - this loader don't load images, just compress), i have own solution https://github.com/itgalaxy/imagemin-webpack (have loader and plugin for both purposes).

svg-url-loader has tests, which run on Travis automatically.

No problems, in many our loader exists test and they run on travis automatically. And we should to write tests for him, we just sometimes do not have time for all this 😭

svg-url-loader repo is greenkeeper enabled.

greenkeeper in now not very smart bot, sub bad true, but i'm sure that this will not be a problem, perhaps this will be the beginning to correct his behavior and enable (enable again in some repo 😄 )

/cc @michael-ciniawsky

from svg-url-loader.

michael-ciniawsky avatar michael-ciniawsky commented on May 31, 2024

@bhovhannes @evilebottnawi 👋

  1. My plan for svg-url-loader is to add option to minimize imported SVGs using SVGO.

This would be better as a separate loader chained with url-loader then 😛

  1. svg-url-loader has tests, which run on Travis automatically

WIP

  1. svg-url-loader repo is greenkeeper enabled

We handle all majot deps in webpack-contrib (loader-utils, schema-utils (Options Validation)) && are actively maintaining the 'core' loaders

Long story short, we could add an encoding option to url-loader and optimisations (generic or webpack related) like this loader currently does with the contentreplacement part could be done aswell depending on the MIME type

The reason for this is mainly to avoid the already existing UX problems many folks have with webpack today, since picking the right loader/plugin is hard (especially for beginners). Some unification effort would be highly appreciated.

from svg-url-loader.

bhovhannes avatar bhovhannes commented on May 31, 2024

@michael-ciniawsky

  1. My plan for svg-url-loader is to add option to minimize imported SVGs using SVGO.

There is svgo-loader which seems to does exactly what I was intended to do here, so that point is not so important at this moment.

  1. svg-url-loader has tests, which run on Travis automatically

Can Travis CI be enabled on url-loader? What can I do from my side to help with that?

  1. svg-url-loader repo is greenkeeper enabled

Can you (or someone else) enable greenkeeper on url-loader repo? What can I do from my side to help with that?

Long story short, we could add an encoding option to url-loader and optimisations (generic or webpack related) like this loader currently does with the contentreplacement part could be done aswell depending on the MIME type

What can I do from my side? Should I put together a PR which will bring in the functionality to url-loader?

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@bhovhannes Yep, PR is be good decision. Let's do PR 👍

Can Travis CI be enabled on url-loader? What can I do from my side to help with that?

Also do in PR.

Can you (or someone else) enable greenkeeper on url-loader repo? What can I do from my side to help with that?

In discussion into PR we can find solution for this, maybe not a bad idea to enable greenkeeper for this repo and see how correctly their now works.

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@bhovhannes You can do this step-by-step:

  1. Add functionality.
  2. Add tests.
  3. Enable greenkeeper.
  4. ...
  5. PROFIT!
  6. Your one of main contributor url-loader 😄

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

Close issue here, if someone want this union please recreate issue here https://github.com/webpack-contrib/organization, thanks for everyone!

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

/cc @bhovhannes still interesting with union url-loader?

from svg-url-loader.

bhovhannes avatar bhovhannes commented on May 31, 2024

@evilebottnawi after the last comment of @d3viant0ne whole process seems unnecessarily complicated to me.
At this moment I have little time to dedicate to open-source, and if I will I'd better spend it to address some long standing issues here.
So, speaking shortly, no.

from svg-url-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@bhovhannes we implement decoder option for url-loader so all what you do loader now possible do with url-loader, so i think you can be champion of decoder.

from svg-url-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.