Giter VIP home page Giter VIP logo

Comments (2)

killercup avatar killercup commented on August 18, 2024 1

Interesting, I've never seen the syntax @import (reference) "../_style/index"; before. Is this documented somewhere?

Edit: My bad, it's documented here.

I still can't fully utilize Less' extend feature, though (like &:extend(.common); where .common is defined in an imported file).

I can see why you don't want to implement this. I'm using style-loader during development and it would be quite weird when the result differed. To be honest, currently this is not a pain point for me, my stuff works as it is. This is just optimization.

Would it be possible to implement something like a "CssCollector" plugin, which collects all CSS requires/imports, concats them and processes them together? (When one CSS file changes, it would need to process all files again, so cache-ablity is lost, but in general CSS processing is quite fast and the raw files could be cached in memory.) I might be interested in implementing something like this in the future.

from extract-text-webpack-plugin.

sokra avatar sokra commented on August 18, 2024

I thought about it and concluded that I won't add it. The reason for this is that a ExtractTextPlugin build should behave equal to a style-loader build and this is not possible with Post-Extract Processing.
Post-Extract Processing is also bad for build performance as we cannot cache idividual modules anymore.

You can use @import (reference) to avoid that stuff is imported twice.

from extract-text-webpack-plugin.

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.