ice/packages/webpack-config
ClarkXia 89de26e969
chore: update versions (#7036)
* chore: update versions

* Update CHANGELOG.md

* Update package.json
2025-03-12 11:26:07 +08:00
..
src feat: split server chunk (#7040) 2025-03-11 18:02:22 +08:00
CHANGELOG.md chore: update versions (#7036) 2025-03-12 11:26:07 +08:00
README.md feat: support match target entry to bundle (#6200) 2023-04-27 12:00:59 +08:00
package.json chore: update versions (#7036) 2025-03-12 11:26:07 +08:00
tsconfig.json feat: miniapp (#333) 2022-11-15 10:32:43 +08:00
types.d.ts fix: import path of types and runtime (#5981) 2023-02-28 15:08:10 +08:00

README.md

@ice/webpack-config

This package providers basic webpack configuration.

Usage

import { getWebpackConfig } from '@ice/webpack-config';
import webpack from 'webpack';

const config = { alias: {} };
const rootDir = process.cwd();
const runtimeTmpDir = '.ice';   // the path of the asset-manifest.json

const webpackConfig = getWebpackConfig({ 
  rootDir, 
  config,
  webpack, 
  runtimeTmpDir,
  target: 'web',
});