Skip to content

Commit

Permalink
dev: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kschiffer committed Feb 19, 2024
1 parent 405075c commit 6304edd
Show file tree
Hide file tree
Showing 11 changed files with 45,082 additions and 84 deletions.
33,211 changes: 33,211 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

2,076 changes: 2,076 additions & 0 deletions .pnp.loader.mjs

Large diffs are not rendered by default.

Binary file added .yarn/install-state.gz
Binary file not shown.
Empty file added .yarnrc.yml
Empty file.
21 changes: 16 additions & 5 deletions config/webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@

import fs from 'fs'
import path from 'path'
import child_process from 'child_process'
import child_process, { exec } from 'child_process'

import webpack from 'webpack'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
import AddAssetHtmlPlugin from 'add-asset-html-webpack-plugin'
import { CleanWebpackPlugin } from 'clean-webpack-plugin'
import ShellPlugin from 'webpack-shell-plugin'
import CopyWebpackPlugin from 'copy-webpack-plugin'
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin'

Expand Down Expand Up @@ -309,9 +308,21 @@ export default {
new webpack.WatchIgnorePlugin({
paths: [/node_modules/, /locales/, path.resolve(context, PUBLIC_DIR)],
}),
new ShellPlugin({
onBuildExit: [`${MAGE} js:extractLocaleFiles`],
}),
{
apply: compiler => {
compiler.hooks.done.tap('AfterWebpackBuildPlugin', () => {
exec(`${MAGE} js:extractLocaleFiles`, (err, stdout, stderr) => {
if (err) {
// eslint-disable-next-line no-console
console.error(`Exec error: ${err}`)
return
}
console.log(`stdout: ${stdout}`)
console.error(`stderr: ${stderr}`)
})
})
},
},
],
}),
}
Loading

0 comments on commit 6304edd

Please sign in to comment.