Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
const { configureDevServer } = require('./webpack.parts');
const { HotAcceptPlugin } = require('hot-accept-webpack-plugin');
const webpack = require('webpack');
exports.developmentConfig = ({ port, publicPath, serverAddress, siteURL, entriesArray, isDevServer = false }) => {
const plugins = [];
// Only enable HMR when using webpack serve (dev server)
if (isDevServer) {
plugins.push(
new webpack.HotModuleReplacementPlugin(),
new HotAcceptPlugin({
test: Object.keys(entriesArray).map(el => `${el}.js`)
})
);
}
return {
devtool: "source-map",
devServer: isDevServer ? configureDevServer(serverAddress, publicPath, port, siteURL) : undefined,
watchOptions: {
ignored: /node_modules/,
},
plugins
};
};