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.

Gulp --prod not linking to asses correctly

See original GitHub issue

Hi Sondr3,

Seems I’m running into another strange issue. When I use gulp --prod or gulp build --prod the .css and .js files are not linked to correctly in the dist folder. For instance in my src/head.html I’ll have something like:

  <!-- CSS -->
  <!-- inject:css -->
  <link rel="stylesheet" href="assets/stylesheets/style-152365af71.min.css">
  <!-- endinject -->

Which is correct, but in one of my static files in dist, it’ll have:

<link rel=stylesheet href=assets/stylesheets/style.css>

Which is obviously incorrect. Any ideas why the links to these assets aren’t being generated correctly in dist?

Thanks for your time

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sondr3commented, Apr 14, 2016

I figured out what was happening, it had something to do with LSI. If you go into your _config.build.yml file and comment out lsi: true it should start working again.

0reactions
mckeever02commented, Apr 13, 2016

I only made the one change in the gulpfile to remove root slash, but that wouldn’t be the issue. Im not sure what incremental regeneration is or how to enable it so don’t think it’d be that either.

Here’s the repository if you want to have a look: https://github.com/mckeever02/jekyllized-test Might see something I don’t

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use gulp for typescript compilation - javascript - Stack Overflow
I've setup gulp to work from gulpfile.js/ folder. In this folder are index.js , config.js and tasks/ folder, and in tasks/typescript.js is task...
Read more >
Gulp babel not transpiling to es5 · Issue #167 - GitHub
I installed gulp babel (and dependencies) and when running gulp, same es6 code is being output in dist. I tried adding .babelrc to...
Read more >
How to Setup a Basic Gulpfile.js | Example and Explanation
The first step is to include the plugins within Gulp.js that you want to use. In the code above, I included the basic...
Read more >
Getting To Know Gulp | Web-Crunch
To get gulp and any other plugins to work correctly, we need to first install Node. This part is simple. Simply head to...
Read more >
Top 18 Most Common AngularJS Developer Mistakes - Toptal
Sheer size of the AngularJS can easily lead to many mistakes. In this article you will learn about most common AngularJS developer mistakes...
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