@shopware-ag/webpack-plugin-injector
Advanced tools
Comparing version 1.0.1 to 1.0.2
10
index.js
@@ -81,3 +81,3 @@ const { join, isAbsolute } = require('path'); | ||
if (typeof this.filePath === 'string') { | ||
content = WebpackPluginInjector.getPluginDefinitionContent(this.filePath); | ||
content = this.getPluginDefinitionContent(this.filePath); | ||
} else { | ||
@@ -122,7 +122,6 @@ content = this.filePath; | ||
* | ||
* @static | ||
* @param {String} definitionFile | ||
* @return {Object} | ||
*/ | ||
static getPluginDefinitionContent(definitionFile) { | ||
getPluginDefinitionContent(definitionFile) { | ||
const fullPathDefinitionFile = resolveFromRootPath(definitionFile); | ||
@@ -162,3 +161,3 @@ | ||
if (pluginDefinition[section] && pluginDefinition[section].entryFilePath) { | ||
const plugin = WebpackPluginInjector.getPluginConfig(pluginName, pluginDefinition, section); | ||
const plugin = this.getPluginConfig(pluginName, pluginDefinition, section); | ||
plugins[section].push(plugin); | ||
@@ -176,3 +175,2 @@ } | ||
* | ||
* @static | ||
* @param {String} pluginName | ||
@@ -183,3 +181,3 @@ * @param {Object} pluginDefinition | ||
*/ | ||
static getPluginConfig(pluginName, pluginDefinition, section) { | ||
getPluginConfig(pluginName, pluginDefinition, section) { | ||
const basePath = resolveFromRootPath(pluginDefinition.basePath); | ||
@@ -186,0 +184,0 @@ const hasCustomWebpackConfig = (pluginDefinition[section].webpack !== null); |
{ | ||
"name": "@shopware-ag/webpack-plugin-injector", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Injects Shopware Plugins into a Webpack config", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14740
356