@studiometa/webpack-config-preset-vue-2 v6.3.6
@studiometa/webpack-config-preset-vue-2
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 }],
}
})],
// ...
});
1 month ago
5 months ago
16 days ago
17 days ago
7 months ago
7 months ago
6 months ago
7 months ago
7 months ago
9 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago