mirror of https://github.com/alibaba/ice.git
				
				
				
			| * chore: update versions * chore: update package.json * Update CHANGELOG.md | ||
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| README.md | ||
| package.json | ||
| 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',
});