Upgrade all javascript dependencies

This commit is contained in:
Patrick Gerken 2021-11-29 01:24:51 +01:00 committed by Jakob Schnitzer
parent 2330cd27fa
commit 471643f78c
5 changed files with 8663 additions and 64 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"file":"app.js","sources":["webpack:///app.js"],"mappings":"AAAA;;;;;;;;;;;;;AAwMA;;;;;;;;;;AAgfA;AA6uIA;AA8iJA;AA46EA;;;;;AAs1BA","sourceRoot":""} {"version":3,"file":"app.js","sources":["webpack:///app.js"],"mappings":"AAAA;;;;;;;;;;;;;AAwMA;;;;;;;;;;AAwgBA;AAwxIA;AAyzJA;AA29EA;;;;;AAyqCA","sourceRoot":""}

8607
webpack/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,23 +6,20 @@
"main": "static/gen/host.js", "main": "static/gen/host.js",
"scripts": {}, "scripts": {},
"devDependencies": { "devDependencies": {
"babel": "^6.5.2", "@babel/core": "^7.16.0",
"babel-core": "^6.11.4", "@babel/eslint-parser": "^7.16.3",
"babel-eslint": "^6.1.2", "@babel/preset-env": "^7.16.4",
"babel-loader": "^6.2.4", "babel-loader": "^8.2.3",
"babel-preset-es2015": "^6.9.0",
"bootstrap": "^3.3.6", "bootstrap": "^3.3.6",
"bootstrap-sass": "^3.3.6", "bootstrap-sass": "^3.3.6",
"css-loader": "^0.23.1", "css-loader": "^6.5.1",
"extract-text-webpack-plugin": "^1.0.1", "font-awesome": "^4.6.3",
"file-loader": "^0.9.0",
"jquery": "^3.1.0", "jquery": "^3.1.0",
"node-sass": "^3.8.0", "mini-css-extract-plugin": "^2.4.5",
"sass-loader": "^4.0.0", "query-string": "^7.0.1",
"style-loader": "^0.13.1", "sass": "^1.43.5",
"query-string": "^4.2.2", "sass-loader": "^12.3.0",
"url-loader": "^0.5.7", "webpack": "^5.64.4",
"webpack": "^1.13.1", "webpack-cli": "^4.9.1"
"font-awesome": "^4.6.3"
} }
} }

View File

@ -1,62 +1,57 @@
var webpack = require('webpack'); var webpack = require("webpack");
var path = require('path'); var path = require("path");
var ExtractTextPlugin = require('extract-text-webpack-plugin'); var MiniCssExtractPlugin = require("mini-css-extract-plugin");
var options = { var options = {
entry: { entry: {
'app': './js/app.js', app: "./js/app.js",
'styles': './scss/main.scss' styles: "./scss/main.scss",
}, },
output: { output: {
path: path.dirname(__dirname) + '/assets/static', path: path.dirname(__dirname) + "/assets/static",
filename: '[name].js' filename: "[name].js",
}, },
devtool: '#cheap-module-source-map', devtool: "cheap-module-source-map",
mode: "production",
resolve: { resolve: {
modulesDirectories: ['node_modules'], modules: ["node_modules"],
extensions: ['', '.js'] extensions: ["", ".js"],
}, },
module: { module: {
loaders: [ rules: [
{ {
test: /\.js$/, test: /\.js$/,
exclude: /node_modules/, exclude: /node_modules/,
loader: 'babel', use: [
query: { {
presets: ['es2015'], loader: "babel-loader",
} options: {
presets: ["es2015"],
},
},
],
}, },
{ {
test: /\.scss$/, test: /\.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!sass-loader') use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
}, },
{ {
test: /\.css$/, test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader') use: [MiniCssExtractPlugin.loader, "css-loader"],
}, },
{ {
test: /\.(woff2?|ttf|eot|svg|png)(\?.*?)?$/, test: /\.(woff2?|ttf|eot|svg|png)(\?.*?)?$/,
loader: 'file' use: ["file"],
} },
] ],
}, },
plugins: [ plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
$: 'jquery', $: "jquery",
jQuery: 'jquery' jQuery: "jquery",
}), }),
new ExtractTextPlugin('styles.css', { new MiniCssExtractPlugin(),
allChunks: true ],
})
]
}; };
module.exports = options; module.exports = options;