Skip to content

Commit

Permalink
feat: add sourcemap on production build
Browse files Browse the repository at this point in the history
fix: makefile start demo
  • Loading branch information
zyhou authored and Pierre Haller committed Feb 10, 2020
1 parent 677ba03 commit 275a296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ help:
install: ## Install dependencies
npm install

start: run
start-demo: run

run: ## Run the webpack-dev-server
npm start
run-demo: ## Run the webpack-dev-server
npm run start-demo

build: clear ## Rollup build the project
npm run build
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ const umd = [
name: pkg.name,
file: pkg.main,
format: 'umd',
sourcemap: isProduction,
},
plugins: [
resolve(),
commonjs(),
babel({
exclude: /node_modules/,
sourceMaps: isProduction,
}),
isProduction && terser(),
],
Expand Down

0 comments on commit 275a296

Please sign in to comment.