@ice/webpack-config
v1.1.14
Published
This package providers basic webpack configuration.
Downloads
1,368
Keywords
Readme
@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',
});