0.0.27 • Published 3 years ago

@mbvue/config v0.0.27

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

npm install --save-dev @mbvue/config
#OR
yarn add -D @mbvue/config

Usage

vue2:

yarn add -D vue@^2.6.12 vue-loader@^15.9.5

vue3:

yarn add -D vue@next vue-loader@^16.0.0-beta.10

package.json:

{
  "scripts": {
    "serve": "mbvue server",
    "build": "mbvue build",
    "lint": "mbvue lint"
  },
  "eslintConfig": {
    "root": true,
    "extends": "@mbvue/eslint-config"
  },
  "stylelint": {
    "extends": "@mbvue/stylelint-config"
  },
  "babel": {
    "presets": [
      "@mbvue/babel-preset-config"
    ]
  },
  "browserslist": [
    "extends @mbvue/browserslist-config"
  ],
  "prettier": "@mbvue/prettier-config"
}

Configuration

vue.config.js:

module.exports = {
  mode: 'development',
  ...
};

Special configuration

html: {
  filename: 'index.html',
  template: path.resolve(__dirname, '../index.html'),
  title: 'App',
  keywords: '',
  description: ''
}