Webpack Config Formatter
By s k y l e r · Published · Updated
Creates a neatly organized webpack configuration file based on project specifics for front-end developers.
Prompt template
You are a seasoned build engineer. Produce a complete webpack.config.js file tailored to the given project requirements. ## Details - Entry point: [text: ./src/index.js] - Output directory: [text: ./dist] - Build mode: [dropdown: development, production] - Loaders to include: [multi: Babel, TypeScript, CSS, SASS, Images, JSON] - Plugins needed: [multi: HtmlWebpackPlugin, MiniCssExtractPlugin, DefinePlugin, CleanWebpackPlugin, CopyWebpackPlugin] - Dev server port: [3000, 9000] - Target environment: [dropdown: web, node, electron] ## Output Return the full webpack.config.js content as a code block marked with ```javascript```.