Skip to content

hero8080/web-layout-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language : 🇺🇸 | 🇨🇳

web-layout-debugger

Using the web-layout-debugger plug-in, you can visually see the web page layout, whether there are layout bugs, whether the layout is standardized, whether the margin and padding spacing are standardized, whether the text alignment is standardized, and whether the button hot zone size is standardized. It can be used in various frameworks such as Vue and react and electron

web-layout-debugger

npm git

Install

npm i web-layout-debugger --save

Use in vite

Edit min.jsfile

import { createApp } from 'vue'
//vue
import App from './App.vue'

//web-layout-debugger
import {loadLayoutDebugger} from 'web-layout-debugger'

//Start web-layout-debugger in development environment
if(import.meta.env.DEV){
    loadLayoutDebugger()
}

createApp(App).mount('#app');

Use in webpack

Edit min.jsfile

import Vue from 'vue'
import App from './App'

import {loadLayoutDebugger} from 'web-layout-debugger'

//Start web-layout-debugger in development environment
if(process.env.NODE_ENV=='development'){
  loadLayoutDebugger()
}

new Vue({
  render: (h) => h(App)
}).$mount('#app')

Use in react

Edit index.jsfile

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';

import {loadLayoutDebugger} from "web-layout-debugger";

//Start web-layout-debugger in development environment
if(process.env.NODE_ENV=='development'){
    loadLayoutDebugger()
}

ReactDOM.render(
    <App />,
    document.getElementById('root')
);

About

web_layout_debugger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published