Fix vulnerabilities
This commit is contained in:
parent
c162de041d
commit
936e17d33c
14
babel.config.js
Normal file
14
babel.config.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
targets: {
|
||||||
|
firefox: 57
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@babel/preset-react"
|
||||||
|
],
|
||||||
|
plugins: ["@babel/plugin-proposal-object-rest-spread", "transform-class-properties"]
|
||||||
|
};
|
7202
package-lock.json
generated
7202
package-lock.json
generated
File diff suppressed because it is too large
Load diff
16
package.json
16
package.json
|
@ -14,25 +14,25 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.0.0-beta.49",
|
"@babel/core": "^7.0.0-beta.49",
|
||||||
|
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
|
||||||
"@babel/preset-env": "^7.0.0-beta.49",
|
"@babel/preset-env": "^7.0.0-beta.49",
|
||||||
"@babel/preset-react": "^7.0.0-beta.49",
|
"@babel/preset-react": "^7.0.0-beta.49",
|
||||||
"babel-loader": "^8.0.0-beta.3",
|
"babel-loader": "^8.0.0-beta.3",
|
||||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||||
"clean-webpack-plugin": "^0.1.19",
|
"clean-webpack-plugin": "^0.1.19",
|
||||||
"copy-webpack-plugin": "^4.5.1",
|
"copy-webpack-plugin": "^5.1.1",
|
||||||
"css-loader": "^0.28.11",
|
"css-loader": "^3.5.3",
|
||||||
"html-webpack-plugin": "^3.2.0",
|
"html-webpack-plugin": "^3.2.0",
|
||||||
"mini-css-extract-plugin": "^0.5.0",
|
"mini-css-extract-plugin": "^0.5.0",
|
||||||
"node-sass": "^4.9.0",
|
"node-sass": "^4.14.0",
|
||||||
"opener": "^1.5.1",
|
"opener": "^1.5.1",
|
||||||
"react-svg-loader": "^2.1.0",
|
"react-svg-loader": "^3.0.3",
|
||||||
"sass-loader": "^7.0.3",
|
"sass-loader": "^7.0.3",
|
||||||
"style-loader": "^0.21.0",
|
"style-loader": "^0.21.0",
|
||||||
"uglifyjs-webpack-plugin": "^1.2.5",
|
|
||||||
"webextension-polyfill": "^0.3.1",
|
"webextension-polyfill": "^0.3.1",
|
||||||
"webpack": "^4.10.2",
|
"webpack": "^4.43.0",
|
||||||
"webpack-bundle-analyzer": "^3.0.4",
|
"webpack-bundle-analyzer": "^3.7.0",
|
||||||
"webpack-cli": "^3.0.1",
|
"webpack-cli": "^3.3.11",
|
||||||
"zip-webpack-plugin": "^3.0.0"
|
"zip-webpack-plugin": "^3.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -29,20 +29,6 @@ const generalConfig = {
|
||||||
loader: "babel-loader",
|
loader: "babel-loader",
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
test: /\.(js|jsx)$/,
|
test: /\.(js|jsx)$/,
|
||||||
query: {
|
|
||||||
presets: [
|
|
||||||
[
|
|
||||||
"@babel/preset-env",
|
|
||||||
{
|
|
||||||
targets: {
|
|
||||||
firefox: 57
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"@babel/preset-react"
|
|
||||||
],
|
|
||||||
plugins: ["transform-class-properties"]
|
|
||||||
},
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".js", ".jsx"]
|
extensions: [".js", ".jsx"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Released under the MIT license.
|
* Released under the MIT license.
|
||||||
* see https://opensource.org/licenses/MIT */
|
* see https://opensource.org/licenses/MIT */
|
||||||
|
|
||||||
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
|
||||||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||||
const {
|
const {
|
||||||
getHTMLPlugins,
|
getHTMLPlugins,
|
||||||
|
@ -35,20 +34,6 @@ const generalConfig = {
|
||||||
loader: "babel-loader",
|
loader: "babel-loader",
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
test: /\.(js|jsx)$/,
|
test: /\.(js|jsx)$/,
|
||||||
query: {
|
|
||||||
presets: [
|
|
||||||
[
|
|
||||||
"@babel/preset-env",
|
|
||||||
{
|
|
||||||
targets: {
|
|
||||||
firefox: 57
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"@babel/preset-react"
|
|
||||||
],
|
|
||||||
plugins: ["transform-class-properties"]
|
|
||||||
},
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".js", ".jsx"]
|
extensions: [".js", ".jsx"]
|
||||||
}
|
}
|
||||||
|
@ -105,9 +90,11 @@ module.exports = [
|
||||||
...generalConfig,
|
...generalConfig,
|
||||||
output: getOutput("chrome", config.tempDirectory),
|
output: getOutput("chrome", config.tempDirectory),
|
||||||
entry: getEntry(config.chromePath),
|
entry: getEntry(config.chromePath),
|
||||||
|
optimization: {
|
||||||
|
minimize: true
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(["dist", "temp"]),
|
new CleanWebpackPlugin(["dist", "temp"]),
|
||||||
new UglifyJsPlugin(),
|
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: "[name]/[name].css"
|
filename: "[name]/[name].css"
|
||||||
}),
|
}),
|
||||||
|
@ -120,9 +107,11 @@ module.exports = [
|
||||||
...generalConfig,
|
...generalConfig,
|
||||||
entry: getEntry(config.firefoxPath),
|
entry: getEntry(config.firefoxPath),
|
||||||
output: getOutput("firefox", config.tempDirectory),
|
output: getOutput("firefox", config.tempDirectory),
|
||||||
|
optimization: {
|
||||||
|
minimize: true
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(["dist", "temp"]),
|
new CleanWebpackPlugin(["dist", "temp"]),
|
||||||
new UglifyJsPlugin(),
|
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: "[name]/[name].css"
|
filename: "[name]/[name].css"
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue