Fix build dll path

This commit is contained in:
Pierre Burgy 2017-07-06 14:24:27 +02:00
parent 565b351844
commit 468d45c773
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ const StrapiPlugin = {
include: ['core-js', 'eventsource-polyfill', 'babel-polyfill', 'lodash'],
// The path where the DLL manifest and bundle will get built
path: resolve('../node_modules/strapi-plugin-dlls'),
path: resolve('node_modules', 'strapi-plugin-dlls'),
},
entry(helperPkg, pluginPkg) {

View File

@ -116,7 +116,7 @@ function dependencyHandlers() {
];
}
const dllPath = path.resolve(process.cwd(), dllPlugin.path || 'node_modules/strapi-plugin-dlls');
const dllPath = dllPlugin.path;
/**
* If DLLs aren't explicitly defined, we assume all production dependencies listed in package.json

View File

@ -19,7 +19,7 @@ const helperPkg = require(join(__dirname, '..', '..', '..', 'package.json'));
const pluginPkg = require(join(process.cwd(), 'package.json'));
if (!pluginPkg.dllPlugin) { pluginPkg.dllPlugin = {}; }
const dllConfig = defaults(pluginPkg.dllPlugin, dllPlugin.defaults);
const outputPath = join(process.cwd(), dllConfig.path);
const outputPath = dllConfig.path;
module.exports = {
context: process.cwd(),