vue-sfc-rollup
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ { | ||
"license": "ISC", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"bin": { | ||
@@ -9,0 +9,0 @@ "sfc-rollup-init": "./sfc-init.js" |
// rollup.config.js | ||
import vue from 'rollup-plugin-vue'; | ||
import buble from 'rollup-plugin-buble'; | ||
import replace from 'rollup-plugin-replace'; | ||
import uglify from 'rollup-plugin-uglify-es'; | ||
@@ -16,5 +17,11 @@ import minimist from 'minimist'; | ||
plugins: [ | ||
replace({ | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
}), | ||
vue({ | ||
css: true, | ||
compileTemplate: true, | ||
template: { | ||
isProduction: true, | ||
}, | ||
}), | ||
@@ -21,0 +28,0 @@ buble(), |
@@ -18,5 +18,5 @@ { | ||
"build": "npm run build:unpkg & npm run build:es & npm run build:umd", | ||
"build:umd": "rollup --config build/rollup.config.js --format umd --file dist/<%-componentName%>.umd.js", | ||
"build:es": "rollup --config build/rollup.config.js --format es --file dist/<%-componentName%>.esm.js", | ||
"build:unpkg": "rollup --config build/rollup.config.js --format iife --file dist/<%-componentName%>.min.js" | ||
"build:umd": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format umd --file dist/<%-componentName%>.umd.js", | ||
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es --file dist/<%-componentName%>.esm.js", | ||
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife --file dist/<%-componentName%>.min.js" | ||
}, | ||
@@ -28,10 +28,12 @@ | ||
"devDependencies": { | ||
"cross-env": "^5.2.0", | ||
"minimist": "^1.2.0", | ||
"rollup": "^0.66.2", | ||
"rollup-plugin-buble": "^0.19.2", | ||
"rollup": "^0.67.4", | ||
"rollup-plugin-buble": "^0.19.6", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-uglify-es": "0.0.1", | ||
"rollup-plugin-vue": "^4.3.0", | ||
"vue": "^2.5.16", | ||
"vue-template-compiler": "^2.5.16" | ||
"rollup-plugin-vue": "^4.3.2", | ||
"vue": "^2.5.21", | ||
"vue-template-compiler": "^2.5.21" | ||
} | ||
} |
// rollup.config.js | ||
import vue from 'rollup-plugin-vue'; | ||
import buble from 'rollup-plugin-buble'; | ||
import replace from 'rollup-plugin-replace'; | ||
import uglify from 'rollup-plugin-uglify-es'; | ||
@@ -16,5 +17,11 @@ import minimist from 'minimist'; | ||
plugins: [ | ||
replace({ | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
}), | ||
vue({ | ||
css: true, | ||
compileTemplate: true, | ||
template: { | ||
isProduction: true, | ||
}, | ||
}), | ||
@@ -21,0 +28,0 @@ buble(), |
@@ -20,5 +20,5 @@ { | ||
"build": "npm run build:unpkg & npm run build:es & npm run build:umd", | ||
"build:umd": "rollup --config build/rollup.config.js --format umd --file dist/<%-componentName%>.umd.js", | ||
"build:es": "rollup --config build/rollup.config.js --format es --file dist/<%-componentName%>.esm.js", | ||
"build:unpkg": "rollup --config build/rollup.config.js --format iife --file dist/<%-componentName%>.min.js" | ||
"build:umd": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format umd --file dist/<%-componentName%>.umd.js", | ||
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es --file dist/<%-componentName%>.esm.js", | ||
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife --file dist/<%-componentName%>.min.js" | ||
}, | ||
@@ -30,10 +30,12 @@ | ||
"devDependencies": { | ||
"cross-env": "^5.2.0", | ||
"minimist": "^1.2.0", | ||
"rollup": "^0.66.2", | ||
"rollup-plugin-buble": "^0.19.2", | ||
"rollup": "^0.67.4", | ||
"rollup-plugin-buble": "^0.19.6", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-uglify-es": "0.0.1", | ||
"rollup-plugin-vue": "^4.3.0", | ||
"vue": "^2.5.16", | ||
"vue-template-compiler": "^2.5.16" | ||
"rollup-plugin-vue": "^4.3.2", | ||
"vue": "^2.5.21", | ||
"vue-template-compiler": "^2.5.21" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20706
274