New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rnjs-webapp

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnjs-webapp

> 移动网页(m)端基础框架

latest
npmnpm
Version
0.0.18
Version published
Maintainers
1
Created
Source

rnjs-webapp

移动网页(m)端基础框架

安装依赖

yarn add rnjs-webapp axios vant amfe-flexible yarn add --dev ts-import-plugin postcss-pxtorem compression-webpack-plugin babel-plugin-import

使用方法(main.ts)

import Vue from 'vue'
import 'amfe-flexible'
import webapp from 'rnjs-webapp'
// vuex和路由
import router from './router'
import store from './store'
// 公共样式
import './assets/css/public.less'
// 注册全局组件及函数
import components from './components'
import App from './App.vue'

Vue.config.productionTip = false

Vue.use(webapp)
Vue.use(components)

new Vue({
  router,
  store,
  render: h => h(App),
  created () {
    webapp.onVueCreated(this)
    store.dispatch('system/customize/update', (window as any).VUE_CUSTOMIZE || {})
  },
  mounted () {
    webapp.onVueMounted(this)
  }
}).$mount('#app')

FAQs

Package last updated on 10 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts