Vue Cli4 Config

screenshot of Vue Cli4 Config
vue
scss

vue-cli4配置vue.config.js持续更新

Overview:

The document provides detailed information on configuring vue-cli4 for development purposes. It covers a wide range of topics such as setting up environment variables, proxy configurations, optimizing images, and various other configuration requirements in a Vue.js project.

Features:

  • Configuration of Multiple Environment Variables: Define different environment configurations using scripts in the package.json file.
  • Base Vue Configuration: Set up basic Vue configurations for the project.
  • Proxy Configuration: Resolve cross-origin issues by configuring proxies.
  • Hot Module Replacement (HMR) Fix: Instructions to fix issues relating to HMR.
  • Alias Configuration: Adding aliases for easier imports.
  • Image Compression: Guidelines on how to compress images efficiently.
  • Sprite sheet generation: Automatically generate sprite sheets for images.
  • SVG to Font conversion: Conversion of SVG images to font icons.
vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

Stylelint

Stylelint is a modern linter for CSS that helps you avoid errors and enforce consistent styling conventions. It provides rules for detecting errors and warnings, and can be configured to match your specific project's requirements.