1.0.6 现已支持服务端渲染

This commit is contained in:
LOGIC 2020-09-11 13:18:34 +08:00
parent 8c0d59ab6d
commit b01666b7f4
3 changed files with 29 additions and 25 deletions

2
dist/main.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,11 @@
{ {
"name": "vue-flip-down", "name": "vue-flip-down",
"version": "1.0.5", "version": "1.0.6",
"description": "vue 翻页效果的倒计时组件", "description": "vue 翻页效果的倒计时组件",
"main": "dist/main.js", "main": "dist/main.js",
"files": [
"dist/"
],
"scripts": { "scripts": {
"dev": "webpack-dev-server --config webpack.dev.config.js", "dev": "webpack-dev-server --config webpack.dev.config.js",
"build": "webpack --config webpack.production.config.js --progress --profile --colors", "build": "webpack --config webpack.production.config.js --progress --profile --colors",
@ -22,35 +25,35 @@
}, },
"homepage": "https://github.com/javaLuo/vue-flip-down#readme", "homepage": "https://github.com/javaLuo/vue-flip-down#readme",
"dependencies": { "dependencies": {
"optimize-css-assets-webpack-plugin": "^5.0.3", "optimize-css-assets-webpack-plugin": "^5.0.4",
"terser-webpack-plugin": "^2.3.1", "terser-webpack-plugin": "^4.1.0",
"vue": "^2.6.11" "vue": "^2.6.12"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.7.7", "@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.7.4", "@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.7", "@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-syntax-dynamic-import": "^7.7.4", "@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.7.6", "@babel/plugin-transform-runtime": "^7.11.5",
"@babel/polyfill": "^7.7.0", "@babel/polyfill": "^7.11.5",
"@babel/runtime": "^7.7.7", "@babel/runtime": "^7.11.2",
"autoprefixer": "^9.7.3", "autoprefixer": "^9.8.6",
"babel-loader": "^8.0.6", "babel-loader": "^8.1.0",
"babel-plugin-import": "^1.13.0", "babel-plugin-import": "^1.13.0",
"babel-plugin-transform-decorators-legacy": "^1.3.5", "babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-preset-vue-app": "^2.0.0", "babel-preset-vue-app": "^2.0.0",
"clean-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^3.0.0",
"css-loader": "^3.4.0", "css-loader": "^4.3.0",
"less": "^3.10.3", "less": "^3.12.2",
"less-loader": "^5.0.0", "less-loader": "^7.0.1",
"postcss-loader": "^3.0.0", "postcss-loader": "^4.0.1",
"style-loader": "^1.1.2", "style-loader": "^1.2.1",
"url-loader": "^3.0.0", "url-loader": "^4.1.0",
"vue-loader": "^15.8.3", "vue-loader": "^15.9.3",
"vue-template-compiler": "^2.6.11", "vue-template-compiler": "^2.6.12",
"webpack": "^4.41.5", "webpack": "^4.44.1",
"webpack-cli": "^3.3.10", "webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.10.1" "webpack-dev-server": "^3.11.0"
}, },
"browserslist": [ "browserslist": [
"iOS >= 8", "iOS >= 8",

View File

@ -16,6 +16,7 @@ module.exports = {
filename: "[name].js", //编译后的文件名字 filename: "[name].js", //编译后的文件名字
library: ["vue-flip-down"], library: ["vue-flip-down"],
libraryTarget: "umd", libraryTarget: "umd",
globalObject: 'this'
}, },
externals: { externals: {
vue: "vue", vue: "vue",