Skip to content

Commit

Permalink
Optimize the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Norserium committed Dec 14, 2019
1 parent 45730c1 commit 5e018c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-advanced-cropper",
"version": "0.15.0",
"version": "0.15.1",
"description": "The advanced library to create your own croppers suited for any website design",
"author": "Norserium",
"license": "MIT",
Expand All @@ -23,7 +23,7 @@
"npm": ">=5"
},
"scripts": {
"build": "cross-env NODE_ENV=build rollup -c",
"build": "cross-env NODE_ENV=production rollup -c",
"start": "cross-env NODE_ENV=build rollup -c -w",
"prepare": "npm run build",
"predeploy": "cd example && npm install && npm run build",
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ export default {
{
file: pkg.main,
format: 'cjs',
sourcemap: true
sourcemap: process.env.NODE_ENV !== 'production'
},
{
file: pkg.module,
format: 'es',
sourcemap: true
sourcemap: process.env.NODE_ENV !== 'production'
},
{
file: pkg.umd,
format: 'umd',
sourcemap: true,
sourcemap: process.env.NODE_ENV !== 'production',
name: 'vue-advanced-cropper'
}
],
Expand Down

0 comments on commit 5e018c3

Please sign in to comment.