diff --git a/event-viewer/package.json b/event-viewer/package.json index 21f9203..6493d92 100644 --- a/event-viewer/package.json +++ b/event-viewer/package.json @@ -7,8 +7,7 @@ "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", - "postinstall": "nuxt prepare", - "webpack-build": "webpack --config webpack.config.mjs && node combine-bundles.js" + "postinstall": "nuxt prepare" }, "dependencies": { "@nuxtjs/tailwindcss": "^6.12.0", diff --git a/event-viewer/rollup.config.js b/event-viewer/rollup.config.js deleted file mode 100644 index 13121b9..0000000 --- a/event-viewer/rollup.config.js +++ /dev/null @@ -1,17 +0,0 @@ -import resolve from '@rollup/plugin-node-resolve'; -import commonjs from '@rollup/plugin-commonjs'; -import { terser } from 'rollup-plugin-terser'; - -export default { - input: '../event-viewer/.output/public', // Adjust this path to your main entry file - output: { - file: 'bundle.js', - format: 'iife', - name: 'NuxtApp' - }, - plugins: [ - resolve(), - commonjs(), - terser() - ] -}; diff --git a/event-viewer/webpack.config.disabled b/event-viewer/webpack.config.disabled deleted file mode 100644 index 0f770fd..0000000 --- a/event-viewer/webpack.config.disabled +++ /dev/null @@ -1,30 +0,0 @@ -import path from 'path'; -import glob from 'glob'; -import { fileURLToPath } from 'url'; -import TerserPlugin from 'terser-webpack-plugin'; - -// Required to get __dirname to work with ES Modules -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); - -export default { - entry: glob.sync('./.output/public/_nuxt/*.js').reduce((acc, file) => { - const name = path.parse(file).name.replace(/[^a-zA-Z0-9_]/g, '_'); - acc[name] = file; - return acc; - }, {}), - output: { - filename: '[name].bundle.js', - path: path.resolve(__dirname, 'dist'), - library: '[name]', - libraryTarget: 'var' - }, - mode: 'production', - optimization: { - minimize: true, - minimizer: [new TerserPlugin()], - }, - resolve: { - extensions: ['.js', '.json'], - }, -};