start-webpack
raw JSON → 0.3.0 verified Sat Apr 25 auth: no javascript abandoned
Webpack task for Start task runner, version 0.3.0. It provides a simple wrapper around webpack 3, intended for use with the Start task runner ecosystem. It was last released in 2017 and no longer maintained. Key differentiators: minimal integration with start-runner, no support for webpack 4+, Node.js >=4 required.
Common errors
error Error: Cannot find module 'webpack' ↓
cause webpack is not installed as a peer dependency.
fix
npm install --save-dev webpack@3
error TypeError: webpack is not a function ↓
cause Using webpack 4+ which changed the API; this package only supports webpack 2-3.
fix
Install webpack@3 or migrate to a different integration.
error Error: Cannot find module 'start' ↓
cause The 'start' task runner is not installed.
fix
npm install --save-dev start
Warnings
deprecated Package is unmaintained since 2017. webpack 3 is outdated and has known security vulnerabilities. ↓
fix Migrate to webpack 4/5 and use @start-task/webpack or direct webpack API.
breaking Breaking change in v0.2.0: drops Node <4 and requires webpack@2. v0.3.0 requires webpack@3. ↓
fix Ensure you have webpack@2 installed for v0.2.x, or webpack@3 for v0.3.0.
gotcha The task runner 'start' must be installed separately; it is not a dependency. ↓
fix Add 'start' to your devDependencies: npm install --save-dev start
gotcha The webpack config must be passed via require (synchronous) because webpack expects an object. Using import may cause issues if config is not exported correctly. ↓
fix Use require('./webpack.config') or import with care.
Install
npm install start-webpack yarn add start-webpack pnpm add start-webpack Imports
- webpack wrong
const webpack = require('start-webpack')correctimport webpack from 'start-webpack'
Quickstart
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import clean from 'start-clean';
import webpack from 'start-webpack';
const start = Start(reporter());
const config = {
entry: './src/index.js',
output: {
path: __dirname + '/dist',
filename: 'bundle.js'
}
};
export const build = () => start(
files('build/'),
clean(),
webpack(config)
);