run npm update and fix webpack config

This commit is contained in:
Jakob Schnitzer 2022-02-20 14:41:45 +01:00
parent 471643f78c
commit 61541f9062
3 changed files with 1526 additions and 1451 deletions

2955
webpack/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@babel/preset-env": "^7.16.4",
"@babel/preset-env": "^7.16.11",
"babel-loader": "^8.2.3",
"bootstrap": "^3.3.6",
"bootstrap-sass": "^3.3.6",

View File

@ -1,22 +1,18 @@
var webpack = require("webpack");
var path = require("path");
var MiniCssExtractPlugin = require("mini-css-extract-plugin");
const webpack = require("webpack");
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
var options = {
const options = {
entry: {
app: "./js/app.js",
styles: "./scss/main.scss",
},
output: {
path: path.dirname(__dirname) + "/assets/static",
path: path.join(__dirname, "..", "assets", "static"),
filename: "[name].js",
},
devtool: "cheap-module-source-map",
devtool: "source-map",
mode: "production",
resolve: {
modules: ["node_modules"],
extensions: ["", ".js"],
},
module: {
rules: [
{
@ -26,7 +22,7 @@ var options = {
{
loader: "babel-loader",
options: {
presets: ["es2015"],
presets: ["@babel/preset-env"],
},
},
],
@ -41,7 +37,7 @@ var options = {
},
{
test: /\.(woff2?|ttf|eot|svg|png)(\?.*?)?$/,
use: ["file"],
type: "asset",
},
],
},