diff --git a/package.json b/package.json index f60341a5..d73a2174 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/rollup.config.js b/rollup.config.js index 1558a9e2..f26de1c0 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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' } ],