Bundle files using Webpack.
$ yarn add --dev @start/plugin-lib-webpack
# or
$ npm install --save-dev @start/plugin-lib-webpack
webpack(config: Configuration, statsOptions?: StatsOptions)
Default:
{
colors: true
}
import sequence from '@start/plugin-sequence'
import env from '@start/plugin-env'
import webpack from '@start/plugin-lib-webpack'
export const task = async () => {
const { default: webpackConfig } = await import('./webpack.config')
return sequence(
env('NODE_ENV', 'production'),
webpack(webpackConfig)
)
}