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": {
|
||||
"@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-react": "^7.0.0-beta.49",
|
||||
"babel-loader": "^8.0.0-beta.3",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"clean-webpack-plugin": "^0.1.19",
|
||||
"copy-webpack-plugin": "^4.5.1",
|
||||
"css-loader": "^0.28.11",
|
||||
"copy-webpack-plugin": "^5.1.1",
|
||||
"css-loader": "^3.5.3",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"mini-css-extract-plugin": "^0.5.0",
|
||||
"node-sass": "^4.9.0",
|
||||
"node-sass": "^4.14.0",
|
||||
"opener": "^1.5.1",
|
||||
"react-svg-loader": "^2.1.0",
|
||||
"react-svg-loader": "^3.0.3",
|
||||
"sass-loader": "^7.0.3",
|
||||
"style-loader": "^0.21.0",
|
||||
"uglifyjs-webpack-plugin": "^1.2.5",
|
||||
"webextension-polyfill": "^0.3.1",
|
||||
"webpack": "^4.10.2",
|
||||
"webpack-bundle-analyzer": "^3.0.4",
|
||||
"webpack-cli": "^3.0.1",
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-bundle-analyzer": "^3.7.0",
|
||||
"webpack-cli": "^3.3.11",
|
||||
"zip-webpack-plugin": "^3.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -29,20 +29,6 @@ const generalConfig = {
|
|||
loader: "babel-loader",
|
||||
exclude: /node_modules/,
|
||||
test: /\.(js|jsx)$/,
|
||||
query: {
|
||||
presets: [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
targets: {
|
||||
firefox: 57
|
||||
}
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
],
|
||||
plugins: ["transform-class-properties"]
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".js", ".jsx"]
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* Released under the MIT license.
|
||||
* see https://opensource.org/licenses/MIT */
|
||||
|
||||
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
||||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||
const {
|
||||
getHTMLPlugins,
|
||||
|
@ -35,20 +34,6 @@ const generalConfig = {
|
|||
loader: "babel-loader",
|
||||
exclude: /node_modules/,
|
||||
test: /\.(js|jsx)$/,
|
||||
query: {
|
||||
presets: [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
targets: {
|
||||
firefox: 57
|
||||
}
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
],
|
||||
plugins: ["transform-class-properties"]
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".js", ".jsx"]
|
||||
}
|
||||
|
@ -105,9 +90,11 @@ module.exports = [
|
|||
...generalConfig,
|
||||
output: getOutput("chrome", config.tempDirectory),
|
||||
entry: getEntry(config.chromePath),
|
||||
optimization: {
|
||||
minimize: true
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(["dist", "temp"]),
|
||||
new UglifyJsPlugin(),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: "[name]/[name].css"
|
||||
}),
|
||||
|
@ -120,9 +107,11 @@ module.exports = [
|
|||
...generalConfig,
|
||||
entry: getEntry(config.firefoxPath),
|
||||
output: getOutput("firefox", config.tempDirectory),
|
||||
optimization: {
|
||||
minimize: true
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(["dist", "temp"]),
|
||||
new UglifyJsPlugin(),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: "[name]/[name].css"
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue