storefront-webpack-config
Advanced tools
Comparing version 1.2.1 to 1.2.2
var path = require('path'); | ||
var localPkg = require.resolve(path.join(process.cwd(), 'package.json')); | ||
var localMeta = require.resolve(path.join(process.cwd(), 'meta.json')); | ||
var localManifest = require.resolve(path.join(process.cwd(), 'manifest.json')); | ||
var pkg = require(localPkg); | ||
var meta = require(localMeta); | ||
var manifest = require(localManifest); | ||
var publicPath = '/assets/@' + meta.vendor + '.' + meta.name + '/'; | ||
var publicPath = '/assets/@' + manifest.vendor + '.' + manifest.name + '/'; | ||
@@ -15,3 +15,3 @@ module.exports = function (config, env, options) { | ||
chunkFilename: '[name].js', | ||
jsonpFunction: 'webpackJsonp_' + meta.vendor.replace(/\-/g, '') + '_' + meta.name.replace(/\-/g, ''), | ||
jsonpFunction: 'webpackJsonp_' + manifest.vendor.replace(/\-/g, '') + '_' + manifest.name.replace(/\-/g, ''), | ||
devtoolModuleFilenameTemplate: 'webpack:///' + pkg.name + '/[resource]' | ||
@@ -18,0 +18,0 @@ }; |
{ | ||
"name": "storefront-webpack-config", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Default storefront webpack config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
11725
1