Подключены пакеты sass, pug, vue-router, vuex

This commit is contained in:
DwCay
2022-09-30 13:41:34 +03:00
parent 69f76d8171
commit 11d25f9fdc
13 changed files with 23681 additions and 1 deletions

36
vue.config.js Normal file
View File

@@ -0,0 +1,36 @@
const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
transpileDependencies: true,
chainWebpack: (config) => {
const pugRule = config.module.rule('pug');
pugRule.uses.clear();
pugRule.oneOfs.clear();
},
configureWebpack: {
module: {
rules: [
{
test: /\.pug$/,
oneOf: [
{
resourceQuery: /^\?vue/u,
loader: '@webdiscus/pug-loader',
options: {
method: 'html',
},
},
{
loader: '@webdiscus/pug-loader',
options: {
method: 'compile',
},
},
],
},
],
},
},
});