Skip to content

Commit

Permalink
reverting webpack changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jvigliotta committed Apr 25, 2024
1 parent 2559364 commit 7125b65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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: {
Expand Down
7 changes: 7 additions & 0 deletions .webpack/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
]
})
Expand Down

0 comments on commit 7125b65

Please sign in to comment.