Skip to content

Commit

Permalink
update:插件更新
Browse files Browse the repository at this point in the history
  • Loading branch information
moeyua committed Jul 28, 2021
1 parent f7202d8 commit 6a862bd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 40 deletions.
25 changes: 0 additions & 25 deletions utools/README.md

This file was deleted.

10 changes: 3 additions & 7 deletions utools/plugin.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"pluginName": "随机密码",
"description": "能够轻松的生成随机密码",
"main": "index.html",
"version": "0.0.3",
"logo": "logo.png",
"author": "Moeyua",
"features": [
{
"code": "randompassword",
"explain": "生成随机的密码",
"cmds":["密码", "随机", "password", "random", "pwd"]
"code": "随机密码",
"explain": "能够生成随机的密码",
"cmds":["密码", "随机", "随机密码", "password", "random", "pwd"]
}
],
"development": {
Expand Down
32 changes: 24 additions & 8 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
// const CopyPlugin = require("copy-webpack-plugin");

// utools打包时使用这个
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/random-password/'
: '/'
// publicPath: './',
// productionSourceMap: false,
}
// publicPath: process.env.NODE_ENV === 'production'
// ? '/random-password/'
// : '/'
publicPath: './',
productionSourceMap: false,
configureWebpack: {
plugins: [
new CopyPlugin(
[
{ from: 'utools' }
]
),
],
}
}

// git-pages打包使用这个
// module.exports = {
// publicPath: process.env.NODE_ENV === 'production'
// ? '/random-password/'
// : '/'
// }

0 comments on commit 6a862bd

Please sign in to comment.