Skip to content

Commit

Permalink
Merge pull request #397 from piotr-cz/bugfix/sourcemaps-build
Browse files Browse the repository at this point in the history
(wmr) Move sourcemap option from start to build command
  • Loading branch information
developit authored Mar 5, 2021
2 parents d495d42 + 8a5a475 commit 9e3b171
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silver-chicken-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'wmr': patch
---

Move sourcemap option from start to build command
2 changes: 1 addition & 1 deletion packages/wmr/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ prog
.option('--cwd', 'The working directory - equivalent to "(cd FOO && wmr)"')
.command('build', 'make a production build')
.option('--prerender', 'Pre-render the application to HTML')
.option('--sourcemap', 'Enable Source Maps')
.action(opts => {
opts.minify = opts.minify !== false && !/false|0/.test(opts.minify);
run(build(opts));
Expand All @@ -37,7 +38,6 @@ prog
.option('--host', 'HTTP host to listen on (default: localhost)')
.option('--http2', 'Use HTTP/2 (default: false)')
.option('--compress', 'Enable compression (default: enabled)')
.option('--sourcemap', 'Enable Source Maps')
.option('--profile', 'Generate build statistics')
.option('--reload', 'Switch off hmr and reload on file saves')
.action(opts => {
Expand Down

0 comments on commit 9e3b171

Please sign in to comment.