mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: upgrade most dependencies
This commit is contained in:
parent
cd6981a794
commit
63fd30f982
2 changed files with 22 additions and 27 deletions
36
package.json
36
package.json
|
|
@ -17,10 +17,9 @@
|
|||
"ini": "^1.3.5",
|
||||
"js-base64": "^2.5.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"octicons": "^7.1.0",
|
||||
"prop-types": "^15.6.1",
|
||||
"react": "^16.8.1",
|
||||
"react-dom": "^16.8.1",
|
||||
"octicons": "^8.5.0",
|
||||
"react": "^16.8.3",
|
||||
"react-dom": "^16.8.3",
|
||||
"safe-touch": "^0.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -32,30 +31,31 @@
|
|||
"@babel/preset-react": "^7.0.0",
|
||||
"@babel/preset-typescript": "^7.3.3",
|
||||
"@svgr/webpack": "^4.1.0",
|
||||
"@types/chrome": "^0.0.77",
|
||||
"@types/chrome": "^0.0.81",
|
||||
"@types/ini": "^1.3.30",
|
||||
"@types/js-base64": "^2.3.1",
|
||||
"@types/node": "^11.9.4",
|
||||
"@types/node": "^11.10.4",
|
||||
"@types/nprogress": "^0.0.29",
|
||||
"@types/react": "^16.8.2",
|
||||
"@types/react-dom": "^16.8.0",
|
||||
"@types/react": "^16.8.6",
|
||||
"@types/react-dom": "^16.8.2",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-loader": "^8.0.5",
|
||||
"copy-webpack-plugin": "^4.6.0",
|
||||
"css-loader": "^0.28.7",
|
||||
"eslint": "^4.19.1",
|
||||
"copy-webpack-plugin": "^5.0.0",
|
||||
"css-loader": "^2.1.0",
|
||||
"eslint": "^5.15.0",
|
||||
"eslint-plugin-babel": "^5.1.0",
|
||||
"file-loader": "^1.1.5",
|
||||
"file-loader": "^3.0.1",
|
||||
"fsevents": "^1.2.4",
|
||||
"json-loader": "^0.5.7",
|
||||
"less": "^2.7.3",
|
||||
"less": "^3.9.0",
|
||||
"less-loader": "^4.0.5",
|
||||
"react-life-hook": "^0.2.0",
|
||||
"style-loader": "^0.19.0",
|
||||
"typescript": "^3.2.2",
|
||||
"uglifyjs-webpack-plugin": "^1.1.1",
|
||||
"url-loader": "^0.6.2",
|
||||
"webpack": "^4.28.2",
|
||||
"style-loader": "^0.23.1",
|
||||
"terser-webpack-plugin": "^1.2.3",
|
||||
"typescript": "^3.3.3333",
|
||||
"uglifyjs-webpack-plugin": "^2.1.2",
|
||||
"url-loader": "^1.1.2",
|
||||
"webpack": "^4.29.6",
|
||||
"webpack-cli": "^3.1.2"
|
||||
},
|
||||
"prettier": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const webpack = require('webpack')
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
const UglifyJSWebpackPlugin = require('uglifyjs-webpack-plugin')
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const path = require('path')
|
||||
|
||||
const srcPath = path.resolve(__dirname, 'src')
|
||||
|
|
@ -22,14 +22,6 @@ const plugins = [
|
|||
|
||||
const IN_PRODUCTION_MODE = process.env.NODE_ENV === 'production'
|
||||
if (IN_PRODUCTION_MODE) {
|
||||
plugins.push(
|
||||
new UglifyJSWebpackPlugin({
|
||||
cache: true,
|
||||
uglifyOptions: {
|
||||
ecma: 6,
|
||||
},
|
||||
})
|
||||
)
|
||||
plugins.push(
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
|
|
@ -43,6 +35,9 @@ module.exports = {
|
|||
entry: {
|
||||
content: './src/content.tsx',
|
||||
},
|
||||
optimization: {
|
||||
minimizer: IN_PRODUCTION_MODE ? [new TerserPlugin()] : [],
|
||||
},
|
||||
mode: IN_PRODUCTION_MODE ? 'production' : 'development',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue