ice/packages/webpack-config
ClarkXia cfde6ccad0
Publish canary / Check Changeset exists (push) Waiting to run Details
Publish canary / Publish Canary (18) (push) Blocked by required conditions Details
CI / build (16.x, ubuntu-latest) (push) Waiting to run Details
CI / build (16.x, windows-latest) (push) Waiting to run Details
CI / build (18.x, ubuntu-latest) (push) Waiting to run Details
CI / build (18.x, windows-latest) (push) Waiting to run Details
Version / Version (16) (push) Waiting to run Details
chore: update versions (#7075)
2025-04-09 11:32:49 +08:00
..
src
CHANGELOG.md chore: update versions (#7075) 2025-04-09 11:32:49 +08:00
README.md
package.json chore: update versions (#7075) 2025-04-09 11:32:49 +08:00
tsconfig.json
types.d.ts

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',
});