From f3ee5a0854bc5079b0f663328e63a4caed785c55 Mon Sep 17 00:00:00 2001 From: Sriram Hariharan Date: Fri, 3 Mar 2023 11:08:16 -0600 Subject: [PATCH] added license and fixed webpack plugin --- LICENSE.md | 21 +++++++++++++++++++++ public/LICENSE.txt | 5 ----- webpack/plugins/buildProcessPlugins.ts | 3 +++ 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 LICENSE.md delete mode 100644 public/LICENSE.txt diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..e6a57fae --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Sriram Hariharan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/public/LICENSE.txt b/public/LICENSE.txt deleted file mode 100644 index 45b8aa77..00000000 --- a/public/LICENSE.txt +++ /dev/null @@ -1,5 +0,0 @@ -Copyright © 2021 , All rights reserved - -All information contained herein is, and remains the property of . The intellectual and technical concepts contained -herein are proprietary to and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. -Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from . \ No newline at end of file diff --git a/webpack/plugins/buildProcessPlugins.ts b/webpack/plugins/buildProcessPlugins.ts index f87f6dfc..68bdd0ff 100644 --- a/webpack/plugins/buildProcessPlugins.ts +++ b/webpack/plugins/buildProcessPlugins.ts @@ -9,6 +9,7 @@ import WebpackBuildNotifierPlugin from 'webpack-build-notifier'; import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin'; import HTMLWebpackPlugin from 'html-webpack-plugin'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; +import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import TypeErrorNotifierPlugin from './custom/TypeErrorNotifierPlugin'; /** @@ -27,6 +28,8 @@ export function getBuildPlugins(mode: Environment, htmlEntries: EntryId[], manif // make sure that the paths are case sensitive plugins.push(new CaseSensitivePathsPlugin()); + plugins.push(new CleanWebpackPlugin()); + // specify how the outputed css files should be named plugins.push( new MiniCssExtractPlugin({