mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure popper.js is installed when needed. Fixes #4219
This commit is contained in:
parent
34b59da526
commit
f02f91cbf1
@ -15,3 +15,4 @@ Bug fixes
|
|||||||
*********
|
*********
|
||||||
|
|
||||||
| `Bug #4218 <https://redmine.postgresql.org/issues/4218>`_ - Properly assign dropdownParent in Select2 controls.
|
| `Bug #4218 <https://redmine.postgresql.org/issues/4218>`_ - Properly assign dropdownParent in Select2 controls.
|
||||||
|
| `Bug #4219 <https://redmine.postgresql.org/issues/4219>`_ - Ensure popper.js is installed when needed.
|
@ -25,6 +25,7 @@ const extractStyle = new MiniCssExtractPlugin({
|
|||||||
allChunks: true,
|
allChunks: true,
|
||||||
});
|
});
|
||||||
const envType = PRODUCTION ? 'production': 'development';
|
const envType = PRODUCTION ? 'production': 'development';
|
||||||
|
const devToolVal = PRODUCTION ? false : 'eval';
|
||||||
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
||||||
|
|
||||||
// Expose libraries in app context so they need not to
|
// Expose libraries in app context so they need not to
|
||||||
@ -68,7 +69,7 @@ const hardSourceWebpackPlugin = new HardSourceWebpackPlugin({
|
|||||||
// Reference: https://webpack.js.org/plugins/source-map-dev-tool-plugin/#components/sidebar/sidebar.jsx
|
// Reference: https://webpack.js.org/plugins/source-map-dev-tool-plugin/#components/sidebar/sidebar.jsx
|
||||||
const sourceMapDevToolPlugin = new webpack.SourceMapDevToolPlugin({
|
const sourceMapDevToolPlugin = new webpack.SourceMapDevToolPlugin({
|
||||||
filename: '[name].js.map',
|
filename: '[name].js.map',
|
||||||
exclude: ['vendor.js', 'codemirror.js'],
|
exclude: ['vendor.js', 'codemirror.js', 'popper.js'],
|
||||||
columns: false,
|
columns: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -123,7 +124,7 @@ pushModulesCss(path.join(__dirname,'./pgadmin'), pgadminStyles);
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: envType,
|
mode: envType,
|
||||||
devtool: false,
|
devtool: devToolVal,
|
||||||
stats: { children: false },
|
stats: { children: false },
|
||||||
// The base directory, an absolute path, for resolving entry points and loaders
|
// The base directory, an absolute path, for resolving entry points and loaders
|
||||||
// from configuration.
|
// from configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user