Skip to content

Commit

Permalink
Removed copyWebpackPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Adithyan-Dinesh-Trenser committed Dec 9, 2024
1 parent 345442c commit 825abf9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 32 deletions.
2 changes: 1 addition & 1 deletion configuration/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ dotenvConfig();
export const config = {
HOST: process.env.HOST_NAME || 'localhost', // Hostname for the server.
IS_DEV: process.env.NODE_ENV?.includes('dev'), // If environment is development or not.
JS_FILE_OUTPUT: 'assets/js/[name].[contenthash].js', // JavaScript file name once built.
JS_FILE_OUTPUT: '[name].min.js', // JavaScript file name once built.
PORT: process.env.PORT_NUMBER || 9000, // Port number for the server.
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "cod-dicomweb-server",
"title": "COD Dicomweb server",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "A wadors server proxy that get data from a COD format.",
"license": "MIT",
"author": "Adithyan DInesh",
"author": "Adithyan Dinesh",
"type": "module",
"main": "./dist/index.ts",
"main": "./dist/main.min.js",
"keywords": [
"cod-dicomweb-server",
"server",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react-jsx",
"lib": ["ES2016", "DOM", "DOM.Iterable"],
"lib": ["ES2016"],
"module": "ESNext",
"moduleResolution": "node",
"noImplicitAny": true,
Expand All @@ -18,7 +18,7 @@
"sourceMap": true,
"strict": true,
"target": "ES2016",
"typeRoots": ["node_modules/@types", "src/@types"],
"typeRoots": ["node_modules/@types", "src/types"],
"verbatimModuleSyntax": true
},
"exclude": ["node_modules", "configuration", "public", "webpack", "coverage"]
Expand Down
2 changes: 0 additions & 2 deletions webpack/common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Import Configuration.
import {
htmlWebpackPlugin,
copyWebpackPlugin,
eSLintWebpackPlugin,
dotenvWebpackPlugin,
} from './plugins/index.js';
Expand All @@ -27,7 +26,6 @@ const output = {
*/
const plugins = [
htmlWebpackPlugin,
copyWebpackPlugin,
eSLintWebpackPlugin,
dotenvWebpackPlugin,
];
Expand Down
22 changes: 0 additions & 22 deletions webpack/plugins/copy-webpack-plugin.js

This file was deleted.

1 change: 0 additions & 1 deletion webpack/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Export all plugins.
export * from './copy-webpack-plugin.js';
export * from './html-webpack-plugin.js';
export * from './clean-webpack-plugin.js';
export * from './dotenv-webpack-plugin.js';
Expand Down
2 changes: 1 addition & 1 deletion webpack/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const plugins = [cleanWebpackPlugin];
const WebpackConfig = {
optimization: {
minimize: true,
minimizer: [new TerserPlugin()],
minimizer: [new TerserPlugin({ extractComments: false })],
},
plugins,
};
Expand Down

0 comments on commit 825abf9

Please sign in to comment.