mwc-components
Version:
## Project setup ``` yarn install ```
44 lines (43 loc) • 1.02 kB
JavaScript
// vue.config.js
const path = require('path')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
/* eslint-disable no-param-reassign */
module.exports = {
devServer: {
hot: false,
liveReload: false
},
configureWebpack: {
plugins: [
new BundleAnalyzerPlugin()
],
output: {
libraryExport: 'default'
}
},
chainWebpack: (config) => {
config.module
.rule('scss')
.oneOf('vue')
.use('postcss-loader')
// config.module
// .rule('svg')
// .use('vue-svg-sprite-loader')
config.resolve.alias.set(
'mdsBase',
path.resolve(
__dirname,
'node_modules/morningstar-design-system/components'
)
)
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap(options => {
options.hotReload = false
return options
})
// config.optimization.delete('splitChunks') // important to disable this to share code
}
}