Fix Travis

This commit is contained in:
Aurelsicoko 2018-01-15 11:31:19 +01:00
parent 4b39785a8a
commit 16c253a846
2 changed files with 8 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -79,6 +79,13 @@ if (isAdmin && !isSetup) {
} catch (e) {
throw new Error(`Impossible to access to ${serverConfig}`);
}
// Note: Travis failed with it.
plugins.push(new CopyWebpackPlugin([{
from: 'config/plugins.json',
context: path.resolve(adminPath, 'admin', 'src'),
to: 'config/plugins.json'
}]));
}
// Build the `index.html file`
@ -105,20 +112,6 @@ if (isAdmin) {
plugins.push(new AddAssetHtmlPlugin({
filepath: path.resolve(__dirname, 'dist/*.dll.js')
}));
// Necessary configuration file to ensure that plugins will be loaded.
const pluginsToInitialize = (() => {
try {
return require(path.resolve(adminPath, 'admin', 'src', 'config', 'plugins.json'));
} catch (e) {
return [];
}
})();
plugins.push(new CopyWebpackPlugin([{
from: 'config/plugins.json',
context: path.resolve(adminPath, 'admin', 'src'),
to: 'config/plugins.json'
}]));
}
const main = (() => {