Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemaps activation #91

Open
jeremyvienney opened this issue Apr 29, 2020 · 1 comment
Open

Sourcemaps activation #91

jeremyvienney opened this issue Apr 29, 2020 · 1 comment

Comments

@jeremyvienney
Copy link

Hello,

First thanks you for this build tool, it works very well and make forget the pain about the workflow around Shopify theme creation !

I'm trying to figure how to enable the sourcemaps in the pipeline.
I assume that the file staler.config.js export an object that extend the webpack default build right ?
So I tried to add this key which in Webpack should add sourcemaps to any bundled files :

module.exports = {
  devtool: 'source-map',

Unfortunatly it doesn't do anything.

Do you have any advice/recommandation about this ?

@jeremyvienney
Copy link
Author

Well after a few hours digging further deep in the project, I figured that the slater.config.js do not extend any Webpack configuration.
I tried some solutions about extend the config with a function into the presets key but it didn't work at all.
This solution was for me the best, even if you don't want work with tailwind css this is for me the best solution as you have totally freedom about your css setup !
#14 (comment)

With Laravel Mix, if you want enable the sourcemaps add simply this line to the mix()

.sourceMaps(true, 'inline-source-map')

I recommend to init this only for dev mode !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant