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.

.scss method with .sourceMaps produces an empty sourcemap file.

See original GitHub issue
  • Laravel Mix Version: 0.8.1
  • Node Version (node -v): 7.6.0
  • NPM Version (npm -v): 4.2.0
  • OS: macOS 10.12.3

Description:

.sass method with .sourceMaps() generates an empty sourcemap

mix config:

mix.js('resources/assets/js/main.js', 'public/js/bundle.js')
.js('resources/assets/js/index-page.js', 'public/js/index-page.js')
.js('resources/assets/js/icons.js', 'public/js/icons.js')
.extract(['jquery', 'babel-polyfill'])
.autoload({
	jquery: ['$', 'jQuery', 'window.jQuery'],
	'headroom.js': ['Headroom']
})
.sass('resources/assets/sass/style.scss', 'public/css')
.disableNotifications()
.options({
	processCssUrls: false
})
.sourceMaps()
.browserSync({
	proxy: process.env.LOCAL_PROXY,
	files: [
		'app/**/*.php',
	        'resources/views/**/*.php',
		'public/js/**/*.js',
	        'public/css/**/*.css'
	]
})

Steps To Reproduce:

Run npm run watch with the provided config.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ankurk91commented, Apr 6, 2017

Fixed in #654

0reactions
stale[bot]commented, Dec 4, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

scss method with .sourceMaps produces an empty ... - GitHub
Steps To Reproduce: Run npm run watch with the provided config. The text was updated successfully, but these errors were encountered: ...
Read more >
Angular 4 webpack sass sourcemap file almost empty (using ...
What do I need to change to get the source map file to be generated correctly? My webpack.config.js file looks like: const path...
Read more >
Should I Use Source Maps in Production? | CSS-Tricks
A “source map” is a special file that connects a minified/uglified version of an asset (CSS or JavaScript) to the original authored version....
Read more >
Create Source Maps in TypeScript: Inline or File
A source map is a special piece of data that “maps” this obfuscated code back to its original state for us to work...
Read more >
sourceMaps problem with Laravel Mix - Laracasts
I'm not able to generate source maps files. In fact, they're generated ONLY when running npm run production , but the css one...
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