mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 06:35:47 +00:00
Fix build dll path
This commit is contained in:
parent
565b351844
commit
468d45c773
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user