All Projects → luvsic3 → multi-vue-webpack

luvsic3 / multi-vue-webpack

Licence: other
A multi entry vue project template

Programming Languages

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

Projects that are alternatives of or similar to multi-vue-webpack

react-ts-webpack-boilerplate
This is the ultimate lightweight boilerplate needed for a React application using typescript with webpack
Stars: ✭ 17 (-5.56%)
Mutual labels:  webpack-boilerplate
webpack-boilerplate
Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)
Stars: ✭ 33 (+83.33%)
Mutual labels:  webpack-boilerplate
Webpack Boilerplate
📦 ‎ A sensible webpack 5 boilerplate.
Stars: ✭ 1,949 (+10727.78%)
Mutual labels:  webpack-boilerplate
react-boilerplate
minimalize modern react boilerplate created using webpack 4 include technology pwa and include popular tools for react developer
Stars: ✭ 18 (+0%)
Mutual labels:  webpack-boilerplate
webpack-es6-sass-boilerplate
A minimalistic webpack 4 based boilerplate for building web apps
Stars: ✭ 38 (+111.11%)
Mutual labels:  webpack-boilerplate
webpack-typescript-react
Webpack 5 boilerplate with support of most common loaders and modules (see tags and description)
Stars: ✭ 185 (+927.78%)
Mutual labels:  webpack-boilerplate
python-webpack-boilerplate
Django Webpack boilerplate & Flask Webpack boilerplate
Stars: ✭ 87 (+383.33%)
Mutual labels:  webpack-boilerplate
vue-webpack-chrome-extension-template
Template for quick creation of Chrome extension on Vuejs hot reloading when developing.
Stars: ✭ 107 (+494.44%)
Mutual labels:  webpack-boilerplate
webpack-boilerplate
Minimal webpack boilerplate
Stars: ✭ 42 (+133.33%)
Mutual labels:  webpack-boilerplate
webpack-starter
🗽 Webpack + Babel + Sass
Stars: ✭ 11 (-38.89%)
Mutual labels:  webpack-boilerplate
babel-webpack-package-boilerplate
boilerplate for building an npm package using webpack, with next-gen javascript transpilation through babel
Stars: ✭ 23 (+27.78%)
Mutual labels:  webpack-boilerplate
webpack-boilerplate
Webpack 4 boilerplate with Babel, Bootstrap 4, jQuery and SCSS on board
Stars: ✭ 24 (+33.33%)
Mutual labels:  webpack-boilerplate
vue-webpack-boilerplate
A webpack boilerplate with vue-loader, axios, vue-router and vuex
Stars: ✭ 51 (+183.33%)
Mutual labels:  webpack-boilerplate

multiWebpack

建议使用 vue-cli@3,此仓库不再维护 。

基于vue-cli的多入口webpack脚手架

Demo

特点

  • 完全复用(抄袭)vue-cli的配置,在此基础上少量侵入代码即可更改为多页面配置
  • 不用担心脚手架更新维护问题,受益于vue-cli的更新

改动

  • 新增build/multi-helper.js用于生成多入口和html打包
  • build/webpack.base.conf改动
const multiHelper = require('./multi-helper')

module.exports = {
  entry: multiHelper.getEntry(),
  plugins: multiHelper.generateTemplate()
}

项目结构

.
├── build/                      # webpack config files
│   └── ...
├── config/
│   ├── index.js                # main project config
│   └── ...
├── dist/
├── ——module1/                  # html file
├── ——module2/                  # html file
├── ——static/                   # assets js css fonts etc.... and some assets copy from /static
├── src/
├── ——module1/
│   ├── main.js                 # app entry file
│   ├── App.vue                 # main app component
│   ├── components/             # ui components
│   │   └── ...
│   └── assets/                 # module assets (processed by 
├── ——module2/
│   ├── main.js                 # app entry file
│   ├── App.vue                 # main app component
│   ├── components/             # ui components
│   │   └── ...
│   └── assets/                 # module assets (processed by webpack)
│       └── ...
├── static/                     # pure static assets (directly copied)
├── test/
│   └── unit/                   # unit tests
│   │   ├── specs/              # test spec files
│   │   ├── eslintrc            # config file for eslint with extra settings only for unit tests
│   │   ├── index.js            # test build entry file
│   │   ├── jest.conf.js        # Config file when using Jest for unit tests
│   │   └── karma.conf.js       # test runner config file when using Karma for unit tests
│   │   ├── setup.js            # file that runs before Jest runs your unit tests
│   └── e2e/                    # e2e tests
│   │   ├── specs/              # test spec files
│   │   ├── custom-assertions/  # custom assertions for e2e tests
│   │   ├── runner.js           # test runner script
│   │   └── nightwatch.conf.js  # test runner config file
├── .babelrc                    # babel config
├── .editorconfig               # indentation, spaces/tabs and similar settings for your editor
├── .eslintrc.js                # eslint config
├── .eslintignore               # eslint ignore rules
├── .gitignore                  # sensible defaults for gitignore
├── .postcssrc.js               # postcss config
├── index.html                  # index.html template
├── package.json                # build scripts and dependencies
└── README.md                   # Default README file

使用

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

打开http://localhost:8080/module1#/就能看到页面啦~

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