Add webpack changes

This commit is contained in:
Muhsin Keloth 2022-08-18 11:44:22 +05:30
parent 1fcaa9bbad
commit fdd13500eb
4 changed files with 38 additions and 4 deletions

View file

@ -27,7 +27,7 @@
:show-popout-button="appConfig.showPopoutButton"
/>
<chat-header
v-if="isHeaderCollapsed"
v-else-if="isHeaderCollapsed"
:title="channelConfig.websiteName"
:avatar-url="channelConfig.avatarUrl"
:show-popout-button="appConfig.showPopoutButton"

View file

@ -23,6 +23,14 @@ environment.loaders.append('audio', {
},
});
environment.config.merge({
resolve: {
alias: {
vue: '@vue/compat',
},
},
});
environment.config.merge({ resolve });
environment.config.set('output.filename', chunkData => {
return chunkData.chunk.name === 'sdk'

View file

@ -1,6 +1,13 @@
module.exports = {
test: /\.vue(\.erb)?$/,
use: [{
loader: 'vue-loader'
}]
}
loader: 'vue-loader',
options: {
compilerOptions: {
compatConfig: {
MODE: 2,
},
},
},
}],
};

19
vue.config.js Normal file
View file

@ -0,0 +1,19 @@
module.exports = {
chainWebpack: config => {
config.resolve.alias.set('vue', '@vue/compat');
config.module
.rule('vue')
.use('vue-loader')
.tap(options => {
return {
...options,
compilerOptions: {
compatConfig: {
MODE: 2,
},
},
};
});
},
};