Skip to content

Commit

Permalink
fix inpage-js minification
Browse files Browse the repository at this point in the history
  • Loading branch information
iJungleboy committed Nov 7, 2023
1 parent 4b75e0d commit 348995a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions projects/inpage/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ const bundleName = "inpage";
const assetsTarget = buildConfig.hasSource ? path.join(buildConfig.source, 'dist', bundleName) : null;
const assetsTargetFallback = path.resolve(__dirname, 'dist');

// console.log('2dm assetsTarget', assetsTarget);

const configuration = {
mode: 'development',
entry: "./src/index.ts",
devtool: 'source-map',
optimization: {
minimize: true,
minimizer: [
new CssMinimizerPlugin({})
new CssMinimizerPlugin({}),
'...',
],
},
plugins: [
Expand All @@ -33,7 +36,8 @@ const configuration = {
{
from: './i18n/*.json',
to: './i18n/[name].js',
toType: 'template'
toType: 'template', // means that to: is a template for the new file name
info: { minimized: true }, // prevents Terser from trying (and failing) to minify the json files
}
],
}),
Expand Down

0 comments on commit 348995a

Please sign in to comment.