Skip to content

Commit

Permalink
部分打包配置及文案描述调整
Browse files Browse the repository at this point in the history
  • Loading branch information
lirongtong committed Jul 8, 2022
1 parent 05c5049 commit a92ddd0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions build/webpack.build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ const OptimizeCSSAssetsPlugin = require('css-minimizer-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const baseConfig = require('./webpack.base.config');
const pkg = require('../package.json');
const postcssConfig = require('../postcss.config');
const banner = `${pkg.name} v${pkg.version}
Copyright ${new Date().getFullYear()} makeit.vip <[email protected]>.
Copyright ${new Date().getFullYear()} makeit.vip <[email protected]>.
All rights reserved.
@license MIT`;

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./src');
export { default } from './src'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"main": "lib/index.js",
"module": "es/index.js",
"unpkg": "dist/captcha.min.js",
"typings": "lib/index.d.ts",
"scripts": {
"dev": "vite",
"declare": "webpack --config build/webpack.common.config.js --progress --color && rm -rf dist/makeit-captcha.min.js",
Expand Down
4 changes: 2 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const autoprefixer = require('autoprefixer');
const autoprefixer = require('autoprefixer')

module.exports = {
plugins: [autoprefixer()]
};
}
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { App } from 'vue'
import { version } from '../package.json'
import { default as Captcha } from './captcha'

const install = (app: App) => {
Expand All @@ -10,6 +9,6 @@ const install = (app: App) => {
export { Captcha }

export default {
version,
version: '2.0.1',
install
}
1 change: 1 addition & 0 deletions tsconfig.dts.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"allowJs": true,
"resolveJsonModule": true,
"baseUrl": "./",
"removeComments": true,
"paths": {
"makeit-captcha": ["src/index.ts"]
},
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"allowJs": true,
"resolveJsonModule": true,
"baseUrl": "./",
"removeComments": true,
"paths": {
"makeit-captcha": ["src/index.ts"],
"makeit-captcha/style": ["src/style.ts"]
Expand Down

0 comments on commit a92ddd0

Please sign in to comment.