All Projects → huruji → eruda-webpack-plugin

huruji / eruda-webpack-plugin

Licence: other
A webpack plugin of eruda to help you develop mobile app

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to eruda-webpack-plugin

Webpack Cdn Plugin
A webpack plugin that use externals of CDN urls for production and local node_modules for development
Stars: ✭ 306 (+446.43%)
Mutual labels:  webpack-plugin, webpack3, webpack4
webpack-alioss-upload-plugin
A flexible webpack plugin to upload files to aliyun oss, which supports multiple optional upload methods and parameters.
Stars: ✭ 14 (-75%)
Mutual labels:  webpack-plugin, webpack4
Gdb Frontend
☕ GDBFrontend is an easy, flexible and extensionable gui debugger.
Stars: ✭ 2,104 (+3657.14%)
Mutual labels:  debug, debugging-tools
tde-webpack-mjml-plugin
Webpack plugin for converting MJML files to HTML
Stars: ✭ 12 (-78.57%)
Mutual labels:  webpack-plugin, webpack3
dwarf import
This loads DWARF info from an open binary and propagates function names, arguments, and type info
Stars: ✭ 18 (-67.86%)
Mutual labels:  debug, debugging-tools
docker-pudb
Debug Python code within a Docker container remotely from your terminal using pudb
Stars: ✭ 18 (-67.86%)
Mutual labels:  debug, debugging-tools
webpack-demos
webpack小练习
Stars: ✭ 17 (-69.64%)
Mutual labels:  webpack-plugin, webpack4
Svg Sprite Loader
Webpack loader for creating SVG sprites.
Stars: ✭ 1,822 (+3153.57%)
Mutual labels:  webpack-plugin, webpack3
Nvue
master分支:webpack4实现一个vue的打包的项目,incremental: 实现增量模块打包
Stars: ✭ 55 (-1.79%)
Mutual labels:  webpack-plugin, webpack4
Html Inline Css Webpack Plugin
☄️ A webpack plugin for convert external stylesheet to the embedded stylesheet
Stars: ✭ 48 (-14.29%)
Mutual labels:  webpack-plugin, webpack4
bugsnag-vue
[DEPRECATED] This package now lives within the monorepo for our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 26 (-53.57%)
Mutual labels:  debug, debugging-tools
React Webpack4 Cook
💯The most powerful webpack4 tutorial in the universe
Stars: ✭ 152 (+171.43%)
Mutual labels:  webpack-plugin, webpack4
Webpack By Sample
Learn webpack by sample, each of the samples contains a readme.md file that indicates the purpose of the sample plus an step by step guide to reproduce it.
Stars: ✭ 190 (+239.29%)
Mutual labels:  webpack3, webpack4
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-64.29%)
Mutual labels:  debug, debugging-tools
Egg Vue Webpack Boilerplate
Egg Vue Server Side Render (SSR) / Client Side Render (CSR)
Stars: ✭ 1,302 (+2225%)
Mutual labels:  webpack3, webpack4
Vue Multiple Pages
A multiple Pages Starter use Vue-cli3
Stars: ✭ 1,079 (+1826.79%)
Mutual labels:  webpack3, webpack4
Mocker Api
mocker-api that creates mocks for REST APIs. It will be helpful when you try to test your application without the actual REST API server.
Stars: ✭ 374 (+567.86%)
Mutual labels:  webpack3, webpack4
Easy Vue
Learn vueJS Easily 👻
Stars: ✭ 896 (+1500%)
Mutual labels:  webpack3, webpack4
Awesome Cms Core
Awesome CMS Core is an open source CMS built using ASP.Net Core & ReactJS with module seperation concern in mind and provide lastest trend of technology like .Net Core, React, Webpack, SASS, Background Job, Message Queue.
Stars: ✭ 352 (+528.57%)
Mutual labels:  webpack-plugin, webpack4
Webpack Babel Multi Target Plugin
A Webpack plugin that works with Babel to allow differential loading - production deployment of ES2015 builds targeted to modern browsers, with an ES5 fallback for legacy browsers.
Stars: ✭ 150 (+167.86%)
Mutual labels:  webpack-plugin, webpack4

English | 中文 NPM

eruda-webpack-plugin

A webpack plugin of eruda to help you develop mobile app

How to use

npm i --save-dev eruda-webpack-plugin
// webpack.config.js
const ErudaWebpackPlugin = require('eruda-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')

const config = {
  devServer: {
        contentBase: path.join(__dirname, 'dist'),
        port: 1000
  },
  mode: "development",
  plugins: [
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, 'index.html')
    }),
    new ErudaWebpackPlugin({
      entry: /index\.js$/
    })
  ]
}

Open http://localhost:1000 in your browser, you can use eruda to debug your mobile app

Using eruda's plugin

new ErudaWebpackPlugin({
  plugins: ['fps', 'timing']
})

Options

injectOnlyOnce (make sure your npm package version > 1.5.0)

Ensure eruda and it's plugins will be injected only once. You can drink a cup of coffe instead of write the regex of entry option.

Default value: true

new ErudaWebpackPlugin({
  injectOnlyOnce: true
})

force

eruda-webpack-plugin only works in development mode, if you need it in other modes, you can set force as true

Default value: false

new ErudaWebpackPlugin({
  force: true
})

tool

Choose which eruda's tools you want, by default all will be added.

new ErudaWebpackPlugin({
  tool: ['console', 'elements']
})

plugins

add eruda's plugin

new ErudaWebpackPlugin({
  plugins: ['fps', 'timing']
})

entry

the assets which should inject eruda instance

all .js assets will be injected by default

new ErudaWebpackPlugin({
  entry: [/index\.js$/, /page1\.js$/]
})

filters

the assets which don't need inject eruda instance

this option is contrary to entry

new ErudaWebpackPlugin({
  filters: [/subpage\.js$/]
})
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].