initial commit

This commit is contained in:
Alex Turchyn
2023-05-21 17:59:36 +03:00
commit 97c462ead2
159 changed files with 10987 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
const { webpackConfig, merge } = require('shakapacker')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
const { VueLoaderPlugin } = require('vue-loader')
const configs = merge(webpackConfig, {
resolve: {
extensions: ['.css', '.scss', '.vue']
},
optimization: {
runtimeChunk: false,
splitChunks: {
cacheGroups: {
default: false
}
}
},
plugins: [
process.env.BUNDLE_ANALYZE && new BundleAnalyzerPlugin(),
new VueLoaderPlugin()
].filter(Boolean)
})
configs.module = merge({
rules: [
{
test: /\.vue$/,
use: [{
loader: 'vue-loader',
options: {
compilerOptions: {
isCustomElement: tag => tag.includes('-')
}
}
}]
}
]
}, configs.module)
module.exports = configs