Improve build times
* Fix bulma/buefy being imported many (many !!!) times * Remove javascript-time-ago because date-fns pretty much does the same thing * Make sure languages are loaded asynchronously Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -5,6 +5,7 @@ module.exports = {
|
||||
runtimeCompiler: true,
|
||||
lintOnSave: true,
|
||||
filenameHashing: true,
|
||||
productionSourceMap: false,
|
||||
outputDir: path.resolve(__dirname, "../priv/static"),
|
||||
configureWebpack: (config) => {
|
||||
// Limit the used memory when building
|
||||
@@ -25,6 +26,17 @@ module.exports = {
|
||||
|
||||
config.plugins.push(new ForkTsCheckerWebpackPlugin(forkTsCheckerOptions));
|
||||
},
|
||||
chainWebpack: (config) => {
|
||||
// remove the prefetch plugin
|
||||
config.plugins.delete("prefetch");
|
||||
},
|
||||
css: {
|
||||
loaderOptions: {
|
||||
scss: {
|
||||
additionalData: `@import "@/variables.scss";`,
|
||||
},
|
||||
},
|
||||
},
|
||||
// configureWebpack: {
|
||||
// optimization: {
|
||||
// splitChunks: {
|
||||
|
||||
Reference in New Issue
Block a user