@studiometa/webpack-config-preset-vue-2

1,459 5
Install
npm install @studiometa/webpack-config-preset-vue-2
Latest Version:6.4.0
Vue:2
License:MIT
Last Updated:Oct 26, 2026
Links: GitHub  ·  npm
Maintainer: jeremiewerner

@studiometa/webpack-config-preset-vue-2

NPM Version

A preset for @studiometa/webpack-config to add Vue 2 support to your project.

Usage

Install the package along with Vue:

npm install --save-dev @studiometa/webpack-config-preset-vue-2
npm install --save vue@2

And load the preset in the meta.config.js file:

import { defineConfig } from '@studiometa/webpack-config';
import { vue } from '@studiometa/webpack-config-preset-vue-2';

export default defineConfig({
  presets: [vue()],
  // ...
});

Pass options for the vue-loader and svgo used by the vue-svg-loader:

import { defineConfig } from '@studiometa/webpack-config';
import { vue } from '@studiometa/webpack-config-preset-vue-2';

export default defineConfig({
  presets: [vue({
    vue: {
      productionMode: true,
    },
    svgo: {
      plugins: [{ prefixIds: true }, { removeViewBox: false }],
    }
  })],
  // ...
});

Related Packages

ml-ui

ml-ui,一套为开发者、设计师和产品经理准备的基于 Vue 2 的移动端组件库

2,336 77
@qiaer/eslint-config-vue2

Vue 2 Standard Style - ESLint 可共享配置

0
@plugin-light/project-config-vue

开箱即用的项目配置,适用于 Vue2.x 项目

4,935

Version History

Version Released Vue License
6.4.0 ^2.7.8 MIT
6.3.6 ^2.7.8 MIT
6.3.5 ^2.7.8 MIT
6.3.4 ^2.7.8 MIT
6.3.3 ^2.7.8 MIT
Pre-releases (6)
Version Released Vue License
5.0.0-alpha.2 ^2.7.8 MIT
5.0.0-alpha.1 ^2.7.8 MIT
4.0.0-alpha.3 ^2.7.8 MIT
4.0.0-alpha.2 ^2.7.8 MIT
4.0.0-alpha.1 ^2.7.8 MIT