Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-henriqueinonhe

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-henriqueinonhe - npm Package Compare versions

Comparing version 1.1.3 to 1.4.0

2

generators/app/index.js

@@ -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",

17

generators/app/templates/React/webpack.config.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc