All Projects → blade254353074 → multi-vue

blade254353074 / multi-vue

Licence: other
multi single-page-application with vue.js

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to multi-vue

easywebpack-vue
Vue Webpack Building Solution, Support Vue Server Side Render (SSR), Client Side Render (CSR) Building
Stars: ✭ 29 (+31.82%)
Mutual labels:  vue-loader
vue-webpack-boilerplate
A webpack boilerplate with vue-loader, axios, vue-router and vuex
Stars: ✭ 51 (+131.82%)
Mutual labels:  vue-loader
esri-vue-cli-example
An example of how to use the ArcGIS API for JavaScript 3.x in a vue-cli application
Stars: ✭ 38 (+72.73%)
Mutual labels:  vue-loader
vux-loader
hack into vue-loader
Stars: ✭ 65 (+195.45%)
Mutual labels:  vue-loader
Vue2-All
Vue2 + Vue-router2 + Vuex + Webpack + axios + jwt
Stars: ✭ 67 (+204.55%)
Mutual labels:  vue-loader
vue2
【🔥Vue.js资讯📚】目前web前端开发非常火爆的框架;定时更新,欢迎 Star 一下。
Stars: ✭ 415 (+1786.36%)
Mutual labels:  vue-loader
example-vue-webpack
An example for vue and webpack
Stars: ✭ 29 (+31.82%)
Mutual labels:  vue-loader
special-vue-series-code-analyzing
「Vue生态库源码系列」,Vue、Vue-router、Vuex、Vue-cli、Vue-loader、Vue-devtools等
Stars: ✭ 15 (-31.82%)
Mutual labels:  vue-loader
VueJs-Soft-UI-Dashboard
🍏 This is Soft UI Dashboard in Vue Js.
Stars: ✭ 61 (+177.27%)
Mutual labels:  vue-loader
ivew-admin
基于iview 的一套后台新零售后台系统,权限模块基于后台控制,前端进行配置映射,从而通过登录后台返回用户权限进行用户权限模块控制。基础信息与权限相关基于cookie实现
Stars: ✭ 32 (+45.45%)
Mutual labels:  vue-loader

Multi Vue

Multi Vue applications with webpack 2.

TODOS:
  • flow - static type check
  • testcafe - auto ui test

With the newest enviroment(2016-12-17):

Have these features:

  • webpack v2 config
  • long-term cache
  • multi entry, multi vue app
  • vue-jsx
  • 1px in every device (rem.js)

Use these loader to build apps:

  • babel-loader
  • css-loader
  • file-loader
  • html-loader
  • json-loader
  • postcss-loader
  • sass-loader
  • standard-loader
  • url-loader
  • vue-loader
  • vue-style-loader

Use these plugins to assist develop:

  • yarn
  • standardjs
  • webpack-dashboard
  • open-browser-webpack-plugin

And these for production:

  • extract-text-webpack-plugin
  • webpack-manifest-plugin
  • webpack-md5-hash
  • imagemin-webpack-plugin
  • imagemin-mozjpeg
  • webpack-visualizer-plugin

Upgrade webpack 1.x to webpack 2.x, these pages are helpful:

How to start:

$ yarn          # or npm install
$ npm start     # for development
$ npm run build # for production

Problems about webpack 1.x to 2.x:

I have some tips to metion you:

1. Evenything beta with webpack 2.x:
2. webpack config changes:

Now webpack understands import and export without them being transformed to CommonJS,
You can change .babelrc to tell Babel to not parse es6 module.

{
  "presets": [
    ["es2015", { "modules": false }]
  ]
}

We can use system.import to dynamic loading modules.
Your browser must support Promise, for old browser you can use es6-promise to polyfill.

Promise.all([
  System.import('vue'),
  System.import('./App')
])
  .then(([Vue, App]) => {
    /* eslint-disable no-new */
    new Vue({
      el: '#app',
      render: h => h(App.default)
    })
  })
  .catch(err => {
    console.error(err)
  })

A few config true into webpack.LoaderOptionsPlugin like:
debug, uglify minimize, third part loader options...

new webpack.LoaderOptionsPlugin({
  debug: false,   // debug
  minimize: true, // Uglify minimize options
  options: {
    context: urls.project, // sass-loader need this
    // vue & postcss options must write to here
    vue: {
      loaders: loaders.css({ sourceMap: true, extract: prod }),
      postcss: [autoprefixer({ browsers: ['last 2 versions'] })]
    },
    postcss: [autoprefixer({ browsers: ['last 2 versions'] })]
  }
})

UglifyJsPlugin sourceMap now defaults to false,
if you need sourceMap in production, you need to pass sourceMap: true.

new UglifyJsPlugin({
  sourceMap: true
})
// In webpack 2.x,
// extensions can not push empty string ('')
resolve.extensions: ['.js', '.jsx', '.vue']

A webpack-dev-server undocument api, to reduce a lot of useless information

// webpack-dev-server node api
stats: {
  // Config for minimal console.log mess.
  assets: false,
  colors: true,
  version: true,
  hash: true,
  timings: true,
  chunks: true,
  chunkModules: false
}

For more configuration infos, to see:

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].