question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate output CSS file.

See original GitHub issue

I want to create these structures in my WP theme:

/src/
-- /scss/
---- /main.scss
----/base/
------/typography.scss
----/modules/
----/partials/
-- /js/
----/vendor/
----/lib/
----/modules/

And tried to modify gulpfile.js as below:

// Style related.
var styleSRC                = './src/scss/*.scss'; // Path to main .scss file.
var styleDestination        = './assets/css/'; // Path to place the compiled CSS file.
// Default set to root folder.

However when output, it loads to assets/css/assets/css/main.min.css

Can you please check that kind of issue?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ahmadawaiscommented, Feb 3, 2018

Sure thing!

0reactions
ahmadawaiscommented, Sep 14, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic import(...) cause duplicate output css #216 - GitHub
css file is now emitted twice in the generated output as 1.css and 2.css. Is this expected? This seems like unnecessary duplicate css...
Read more >
Why does my code duplicate the css of a file? - Stack Overflow
css file, a good practice is to import everything on the file that will be compiled and not on each partial. Let's imagine...
Read more >
duplicate css - npm search
Used to merge image files into one directory and meantime remove duplicate img files. It supports both css files and html files.
Read more >
A Front End Dev on Twitter: "Duplicate CSS has added an additional ...
Duplicate CSS has added an additional 1MB to the final output CSS file. An entire extra megabyte of things we do not need...
Read more >
MiniCssExtractPlugin - webpack
This plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found