All Projects → codewizz → bower-resolve-webpack-plugin

codewizz / bower-resolve-webpack-plugin

Licence: MIT license
Offers an enhanced bower support for enhanced-resolve plugin.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to bower-resolve-webpack-plugin

ignore-emit-webpack-plugin
Prevents ignored files from being emitted during a Webpack build
Stars: ✭ 17 (+41.67%)
Mutual labels:  webpack-plugin, webpack2
Browser Sync Webpack Plugin
Easily use BrowserSync in your Webpack project.
Stars: ✭ 356 (+2866.67%)
Mutual labels:  webpack-plugin, webpack2
tde-webpack-mjml-plugin
Webpack plugin for converting MJML files to HTML
Stars: ✭ 12 (+0%)
Mutual labels:  webpack-plugin, webpack2
prettier-eslint-webpack-plugin
Webpack plugin for prettier-eslint which ESLint's settings is set to JavaScript Standard Style
Stars: ✭ 24 (+100%)
Mutual labels:  webpack-plugin, webpack2
Svg Sprite Loader
Webpack loader for creating SVG sprites.
Stars: ✭ 1,822 (+15083.33%)
Mutual labels:  webpack-plugin, webpack2
Webpack Alioss Plugin
阿里 oss-webpack 自动上传插件
Stars: ✭ 35 (+191.67%)
Mutual labels:  webpack-plugin, webpack2
Webpack Cdn Plugin
A webpack plugin that use externals of CDN urls for production and local node_modules for development
Stars: ✭ 306 (+2450%)
Mutual labels:  webpack-plugin, webpack2
Html Res Webpack Plugin
plugin for generating html in webpack
Stars: ✭ 170 (+1316.67%)
Mutual labels:  webpack-plugin, webpack2
Everything Is A Plugin
Everything is a Plugin: Mastering webpack from the inside out. NgConf 2017
Stars: ✭ 123 (+925%)
Mutual labels:  webpack-plugin, webpack2
Webpack Core Usage
webpack2完整系列课程,欢迎阅读。同时欢迎移步我的react全家桶文章全集: https://github.com/liangklfangl/react-article-bucket
Stars: ✭ 94 (+683.33%)
Mutual labels:  webpack-plugin, webpack2
Multipage Webpack Plugin
A plugin that makes handling templates and asset distribution for multi-page applications using webpack trivial
Stars: ✭ 168 (+1300%)
Mutual labels:  webpack-plugin, webpack2
Generator Fountain Webapp
Yeoman 'fountain' generator to start a webapp
Stars: ✭ 985 (+8108.33%)
Mutual labels:  bower, webpack2
pxtorem-webpack-plugin
A webpack plugin for generating rem for stylesheet and inject auto calculate scripts.
Stars: ✭ 24 (+100%)
Mutual labels:  webpack-plugin
bower-angular-translate
angular-translate Bower Package
Stars: ✭ 73 (+508.33%)
Mutual labels:  bower
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (+175%)
Mutual labels:  webpack2
asset-map-webpack-plugin
Webpack plugin that creates a map of assets to public url slug for server agnostic usage.
Stars: ✭ 14 (+16.67%)
Mutual labels:  webpack-plugin
config-webpack-plugin
💫 Merge one or more configuration files together with environment variables too.
Stars: ✭ 18 (+50%)
Mutual labels:  webpack-plugin
qn-webpack
Qiniu webpack plugin (七牛 Webpack 插件)
Stars: ✭ 39 (+225%)
Mutual labels:  webpack-plugin
Angular4-boilerplate-webpack2
Clean Angular Boilerplate with webapack 2
Stars: ✭ 17 (+41.67%)
Mutual labels:  webpack2
eruda-webpack-plugin
A webpack plugin of eruda to help you develop mobile app
Stars: ✭ 56 (+366.67%)
Mutual labels:  webpack-plugin

Bower Webpack Plugin

Use Bower with Webpack v2.

What

Enhances enhanced-resolver plugin to be able to understand bower.json description file when main field is an array. Plugin iterates over all defined libraries in the array, finds javascript file and resolves it as a module file. Keep in mind, you are still responsible to manually require any other non-javascript files associated with the bower package.

Usage

Install the plugin:

npm install bower-resolve-webpack-plugin

Add the plugin to your Webpack configuration:

  const BowerResolvePlugin = require("bower-resolve-webpack-plugin");

  resolve: {
    plugins: [new BowerResolvePlugin()],
    modules: ['bower_components', 'node_modules'],
    descriptionFiles: ['bower.json', 'package.json'],
    mainFields: ['browser', 'main']
  },

Caveats

This plugin has been developed to work with Webpack 2, for similar plugins that work with Webpack 1 use Bower Plugin.

About CodeWizz

CodeWizz is a web development agency based in Lithuania. You'll find more information on our website.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].