GithubHelp home page GithubHelp logo

Duplicate output CSS file. about wpgulp HOT 8 CLOSED

ahmadawais avatar ahmadawais commented on July 26, 2024 1
Duplicate output CSS file.

from wpgulp.

Comments (8)

ahmadawais avatar ahmadawais commented on July 26, 2024 1

Sure thing!

from wpgulp.

theenoahmason avatar theenoahmason commented on July 26, 2024

Can confirm. Makes using this package impossible. Will check back later for a fix. So promising :(

from wpgulp.

theenoahmason avatar theenoahmason commented on July 26, 2024

@khoipro This is happening because the sourcemap location is too specific, it should be relative if you are in the pipe already.

See the code that writes styles sourcemap around line 187:
Latest tagged release has: .pipe( sourcemaps.write ( styleDestination ) );
(This works fine at the theme root, but is incorrect.)

Solution:

It should be: .pipe( sourcemaps.write ( './' ) ),
This makes sure that the sourcemaps get written alongside the min files, reguardless of where the source css is.

This should never change.

from wpgulp.

theenoahmason avatar theenoahmason commented on July 26, 2024

@ahmadawais I just experienced this issue and solved with the above ^. Your latest release in the tags section of this repo is not working with even small customization, and a lot of deps are out of date, yet aren't being mentioned in npm outdated for some reason.

from wpgulp.

ahmadawais avatar ahmadawais commented on July 26, 2024

@theenoahmason We are close to releasing a major upgrade. Can you help test it to see if things are looking good there? It's there in the v2.0.0 branch.

from wpgulp.

ahmadawais avatar ahmadawais commented on July 26, 2024

Also you should try the gulpfile in the master with the installation instructions, that is already updated.

from wpgulp.

theenoahmason avatar theenoahmason commented on July 26, 2024

@ahmadawais gotcha, sorry for confusion! maybe release 1.0.4 with just that fix for people who may still be using 1.0?

from wpgulp.

ahmadawais avatar ahmadawais commented on July 26, 2024

Can you check this and repoen for the latest v2 release?

from wpgulp.

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.