Package Exports
- @zenstone/webpack-starter
- @zenstone/webpack-starter/dist/index.js
- @zenstone/webpack-starter/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zenstone/webpack-starter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@zenstone/webpack-starter
一个更简易的 Webpack 启动器。
pnpm add typescript @zenstone/webpack-starter @types/react @types/react-dom webpack webpack-dev-server webpack-cli -D
pnpm add react react-dom
添加 webpack.config.js
文件
const { webpackConfig } = require('@zenstone/webpack-starter');
module.exports = function(runtime) {
return webpackConfig({ runtime }).export();
};