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:
@@ -102,3 +102,8 @@ iOSInjectionProject/
|
|||||||
# gradle properties
|
# gradle properties
|
||||||
local.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);
|
|
||||||
Reference in New Issue
Block a user