mirror of https://github.com/alibaba/ice.git
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
|
||
---|---|---|
.. | ||
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',
});