generator-henriqueinonhe
Advanced tools
Comparing version 1.1.3 to 1.4.0
@@ -61,4 +61,2 @@ const Generator = require("yeoman-generator") | ||
"circular-dependency-plugin", | ||
//Cleans build directory automatically | ||
"clean-webpack-plugin", | ||
//Compresses static assets | ||
@@ -65,0 +63,0 @@ "compression-webpack-plugin", |
@@ -7,3 +7,2 @@ const path = require("path"); | ||
const HtmlWebpackPlugin = require("html-webpack-plugin"); | ||
const { CleanWebpackPlugin } = require("clean-webpack-plugin"); | ||
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin"); | ||
@@ -21,10 +20,4 @@ const CaseSensitivePathsPlugin = require("case-sensitive-paths-webpack-plugin"); | ||
dotenv.config(); | ||
const environmentVariables = []; | ||
//Used in DefinePlugin to automatically make all | ||
//environment variables available | ||
const environmentVariablesObject = {}; | ||
for(const key in process.env) { | ||
environmentVariablesObject[`process.env.${key}`] = JSON.stringify(process.env[key]); | ||
} | ||
const config = env => { | ||
@@ -90,5 +83,6 @@ const srcPath = path.resolve(__dirname, "src"); | ||
pathinfo: false, | ||
assetModuleFilename: "assets/[name].[ext]", | ||
assetModuleFilename: "assets/[name][ext]", | ||
//So that every resource will be served as if the URL was "/" (client side routing) | ||
publicPath: "/" | ||
publicPath: "/", | ||
clean: true | ||
}, | ||
@@ -116,3 +110,3 @@ module: { | ||
plugins: [ | ||
new webpack.DefinePlugin(environmentVariablesObject), | ||
new webpack.EnvironmentPlugin(environmentVariables), | ||
new ForkTsCheckerWebpackPlugin({ | ||
@@ -130,3 +124,2 @@ async: env.NODE_ENV === "development", | ||
new WatchMissingNodeModulesPlugin(), | ||
new CleanWebpackPlugin(), | ||
new HtmlWebpackPlugin({ | ||
@@ -133,0 +126,0 @@ title: "Title", |
{ | ||
"name": "generator-henriqueinonhe", | ||
"version": "1.1.3", | ||
"version": "1.4.0", | ||
"description": "My personal scaffolding tool", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
0
18895
604