Stop tracking moko-resources generated webpack/karma config

These config.d fragments are regenerated identically by the moko-resources
Gradle plugin on every build, so they're build output rather than source.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QpjMKWGoiT5aJBzhxvXkwp
This commit is contained in:
2026-09-08 09:33:59 +03:00
co-authored by Claude Sonnet 5
parent 14ec044c44
commit 8a73b140c4
3 changed files with 5 additions and 60 deletions
+5
View File
@@ -102,3 +102,8 @@ iOSInjectionProject/
# gradle properties
local.properties
# moko-resources regenerates these webpack/karma config fragments on every build (verified
# byte-for-byte reproducible), so they're build output, not source.
karma.config.d/
webpack.config.d/
@@ -1,21 +0,0 @@
// workaround from https://github.com/ryanclark/karma-webpack/issues/498#issuecomment-790040818
const output = {
path: require("os").tmpdir() + '/' + '_karma_webpack_' + Math.floor(Math.random() * 1000000),
}
const optimization = {
runtimeChunk: true
}
config.set(
{
webpack: {... createWebpackConfig(), output, optimization},
files: config.files.concat([{
pattern: `${output.path}/**/*`,
watched: false,
included: false,
}]
)
}
)
@@ -1,39 +0,0 @@
// noinspection JSUnnecessarySemicolon
;(function(config) {
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
config.module.rules.push(
{
test: /\.(.*)/,
resource: [
path.resolve(__dirname, "kotlin/assets"),
path.resolve(__dirname, "kotlin/files"),
path.resolve(__dirname, "kotlin/images"),
path.resolve(__dirname, "kotlin/localization"),
],
type: 'asset/resource'
}
);
config.plugins.push(new MiniCssExtractPlugin())
config.module.rules.push(
{
test: /\.css$/,
resource: [
path.resolve(__dirname, "kotlin/fonts"),
],
use: ['style-loader', 'css-loader']
}
)
config.module.rules.push(
{
test: /\.(otf|ttf)?$/,
resource: [
path.resolve(__dirname, "kotlin/fonts"),
],
type: 'asset/resource',
}
)
})(config);