ice/packages/webpack-config
ClarkXia 2616c68325
chore: update versions (#6906)
2024-06-26 10:28:56 +08:00
..
src fix: minify config of swc (#6871) 2024-05-06 19:25:42 +08:00
CHANGELOG.md chore: update versions (#6906) 2024-06-26 10:28:56 +08:00
README.md
package.json chore: update versions (#6906) 2024-06-26 10:28:56 +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',
});