Skip to content

Commit

Permalink
Upgrade dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Maluen committed Oct 20, 2023
1 parent 86d9582 commit 041c886
Show file tree
Hide file tree
Showing 5 changed files with 3,778 additions and 4,570 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');

module.exports = {
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"extends": "airbnb",
"env": {
"browser": true
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
"@babel/preset-react"
],
plugins: [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-class-properties",
"babel-plugin-styled-components"
],
};
55 changes: 30 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,37 @@
},
"author": "Manuel Dell'Elce",
"license": "MPL-2.0",
"engines" : {
"node" : ">=18.18.2"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.6",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.8.6",
"@babel/preset-react": "^7.8.3",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.6",
"babel-plugin-styled-components": "^1.10.7",
"clean-webpack-plugin": "3.0.0",
"copy-webpack-plugin": "5.1.1",
"cross-env": "^7.0.2",
"css-loader": "3.4.2",
"eslint": "^6.0.8",
"eslint-config-airbnb": "^18.0.1",
"eslint-import-resolver-webpack": "^0.12.1",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.18.3",
"mini-css-extract-plugin": "0.9.0",
"node-sass": "^4.13.1",
"sass-loader": "^8.0.2",
"style-loader": "^1.1.3",
"terser-webpack-plugin": "^2.3.5",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11",
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-transform-class-properties": "^7.22.5",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/register": "^7.22.15",
"babel-loader": "^9.1.3",
"babel-plugin-styled-components": "^1.13.3",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"eslint": "^8.51.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-import-resolver-webpack": "^0.13.7",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "4.3.0",
"mini-css-extract-plugin": "^2.7.6",
"node-sass": "^9.0.0",
"sass-loader": "^13.0.2",
"style-loader": "^3.3.3",
"terser-webpack-plugin": "^5.3.9",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"write-json-webpack-plugin": "^1.1.0"
},
"dependencies": {
Expand Down
19 changes: 10 additions & 9 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const packageJson = require('./package.json');
const sassLoader = {
loader: 'sass-loader',
options: {
prependData: `
additionalData: `
$namespace: ${config.namespace};
`,
},
Expand All @@ -30,7 +30,6 @@ const createConfig = (browser) => ({
},
output: {
path: path.resolve(__dirname, 'dist') + '/' + browser,
filename: '[name].js',
},
module: {
rules: [
Expand Down Expand Up @@ -71,12 +70,14 @@ const createConfig = (browser) => ({
filename: 'manifest.json',
pretty: true,
}),
new CopyWebpackPlugin([
{ from: 'src/assets', to: 'assets' },
{ from: 'src/background/background.html', to: 'background' },
{ from: 'src/app/index.html', to: 'app' },
{ from: 'src/app/assets', to: 'app/assets' },
]),
new CopyWebpackPlugin({
patterns: [
{ from: 'src/assets', to: 'assets' },
{ from: 'src/background/background.html', to: 'background' },
{ from: 'src/app/index.html', to: 'app' },
{ from: 'src/app/assets', to: 'app/assets' },
],
}),
new MiniCssExtractPlugin({
filename: '[name].css',
chunkFilename: '[id].css',
Expand All @@ -85,7 +86,7 @@ const createConfig = (browser) => ({
optimization: {
minimizer: [new TerserPlugin({
terserOptions: {
minimize: true,
//minimize: true,
compress: {
evaluate: false,
inline: 1, // https://github.com/mishoo/UglifyJS2/issues/2842
Expand Down
Loading

0 comments on commit 041c886

Please sign in to comment.