Code Monkey home page Code Monkey logo

Comments (5)

kisenka avatar kisenka commented on May 20, 2024

@rosscourt > is this what you were trying to work out in this repo?
yes.

If you want to extract symbols in separate file via extract-text-webpack-plugin and want import statement to return a symbol id you anyway should patch extract-text-webpack-plugin loader :( Because by default it replace module exports with // removed by extract-text-webpack-plugin

from svg-sprite-loader.

kirill-kruchkov avatar kirill-kruchkov commented on May 20, 2024

Hello! I tried to use Extract SVG too. Here's a workaround I came up with: you can run two separate/parallel builds, first one with loader to make your client bundle and insert correct ids into your 's, and second with extract to create bundle svg file.
Seems OK for me for now, 'cause I'm experimenting with pre-rendering html files for certain routes of my app using two separate builds.

from svg-sprite-loader.

kisenka avatar kisenka commented on May 20, 2024

@kirill-kruchkov

That's weird! :) [email protected] with proper extracting mode is on the way, please read about it here #91 and take part in discussion/voting.

from svg-sprite-loader.

kirill-kruchkov avatar kirill-kruchkov commented on May 20, 2024

@kisenka well, it's ok for experimentation. Never goes to production :)

from svg-sprite-loader.

kisenka avatar kisenka commented on May 20, 2024

Closing this because proper sprite extracting was implemented in new 2.0 version. Please update.

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