Language : 🇺🇸 | 🇨🇳
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
npm i web-layout-debugger --save
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');
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')
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')
);