Deploy VueJS App in a subdirectory

For Vue CLI 3 it is pretty simple. Edit your vue.config.js (if there is none, create it in project root directory) and add following lines: module.exports = { baseUrl: “./” }; Or whatever sub-directory you want. You may also decide according to NODE_ENV. See the docs. module.exports = { baseUrl: process.env.NODE_ENV === ‘production’ ? ‘/production-sub-path/’ … Read more

How to generate dynamic import chunk name in Webpack

From webpack docs: webpackChunkName: A name for the new chunk. Since webpack 2.6.0, the placeholders [index] and [request] are supported within the given string to an incremented number or the actual resolved filename respectively. You can use [request] placeholder to set dynamic chunk name. A basic example would be: const cat = “Cat”; import( /* … Read more

How to make Font awesome 5 work with webpack

In my project (HTML Starter with webpack 4.26.1) I added FontAwesome via two variants: 1. Installed and added I just installed FontAwesome Free (v5.5.0) npm install –save-dev @fortawesome/fontawesome-free and I added to index.js import ‘@fortawesome/fontawesome-free/js/fontawesome’ import ‘@fortawesome/fontawesome-free/js/solid’ import ‘@fortawesome/fontawesome-free/js/regular’ import ‘@fortawesome/fontawesome-free/js/brands’ Source code / Commit 2. Used with the API / SVG I installed FontAwesome … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)