From 7125b651296bd73241175a40f138d84d565feb42 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Thu, 25 Apr 2024 12:17:13 -0700 Subject: [PATCH] reverting webpack changes --- .webpack/webpack.common.js | 12 ------------ .webpack/webpack.dev.js | 7 +++++++ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.webpack/webpack.common.js b/.webpack/webpack.common.js index e38ff72..fc7d337 100644 --- a/.webpack/webpack.common.js +++ b/.webpack/webpack.common.js @@ -4,7 +4,6 @@ const path = require('path'); const packageDefinition = require('../package.json'); const webpack = require('webpack'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); -const CopyWebpackPlugin = require('copy-webpack-plugin'); const { VueLoaderPlugin } = require('vue-loader'); let gitRevision = 'error-retrieving-revision'; @@ -88,17 +87,6 @@ const config = { new MiniCssExtractPlugin({ filename: '[name].css', chunkFilename: '[name].css' - }), - new CopyWebpackPlugin({ - patterns: [ - { - from: './index.html', - transform: function (content) { - // for dev, we serve out of dist/ so we need to replace any reference - return content.toString().replace(/"dist\//g, '"'); - } - } - ] }) ], module: { diff --git a/.webpack/webpack.dev.js b/.webpack/webpack.dev.js index 23532f6..f62d259 100644 --- a/.webpack/webpack.dev.js +++ b/.webpack/webpack.dev.js @@ -29,6 +29,13 @@ module.exports = merge(common, { plugins: [ new CopyWebpackPlugin({ patterns: [ + { + from: './index.html', + transform: function (content) { + // for dev, we serve out of dist/ so we need to replace any reference + return content.toString().replace(/"dist\//g, '"'); + } + }, { from: './ExampleVenueDefinitions.json', to: 'ExampleVenueDefinitions.json' } ] })