blob: d5b466ddd750dce2db57aceae6969633453cb7ba [file]
// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// dart format width=76
// ignore_for_file: unused_local_variable
// snippet-start
import 'package:hooks/hooks.dart';
import 'package:web_assets/web_assets.dart';
void main(List<String> args) async {
await build(args, (input, output) async {
if (input.config.buildWebUriAssets) {
final packageName = input.packageName;
final assetPathInPackage = input.packageRoot.resolve('...');
final assetPathDownload = input.outputDirectoryShared.resolve('...');
output.assets.webUri.add(
WebUriAsset(
package: packageName,
name: '...',
file: assetPathInPackage,
),
);
}
});
}
// snippet-end