Skip to content

Commit 5e018c3

Browse files
committed
Optimize the build
1 parent 45730c1 commit 5e018c3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-advanced-cropper",
3-
"version": "0.15.0",
3+
"version": "0.15.1",
44
"description": "The advanced library to create your own croppers suited for any website design",
55
"author": "Norserium",
66
"license": "MIT",
@@ -23,7 +23,7 @@
2323
"npm": ">=5"
2424
},
2525
"scripts": {
26-
"build": "cross-env NODE_ENV=build rollup -c",
26+
"build": "cross-env NODE_ENV=production rollup -c",
2727
"start": "cross-env NODE_ENV=build rollup -c -w",
2828
"prepare": "npm run build",
2929
"predeploy": "cd example && npm install && npm run build",

rollup.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ export default {
1515
{
1616
file: pkg.main,
1717
format: 'cjs',
18-
sourcemap: true
18+
sourcemap: process.env.NODE_ENV !== 'production'
1919
},
2020
{
2121
file: pkg.module,
2222
format: 'es',
23-
sourcemap: true
23+
sourcemap: process.env.NODE_ENV !== 'production'
2424
},
2525
{
2626
file: pkg.umd,
2727
format: 'umd',
28-
sourcemap: true,
28+
sourcemap: process.env.NODE_ENV !== 'production',
2929
name: 'vue-advanced-cropper'
3030
}
3131
],

0 commit comments

Comments
 (0)