vue-cli-4

Vue-Cli: why after the build the index.html is not generated with quotes?

僤鯓⒐⒋嵵緔 提交于 2021-02-05 09:32:01
问题 After running the npm build, the ./dist/index.html file is generated without the quotes. The project does not have a webpack.config.js or a vue.config.js . The build is generated from the example project made with vue create . How do I solve this? <!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>html-project</title><link href=/app

Vue-Cli: why after the build the index.html is not generated with quotes?

╄→гoц情女王★ 提交于 2021-02-05 09:31:07
问题 After running the npm build, the ./dist/index.html file is generated without the quotes. The project does not have a webpack.config.js or a vue.config.js . The build is generated from the example project made with vue create . How do I solve this? <!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>html-project</title><link href=/app

Keeping asset and public path different in vue app for CDN

大城市里の小女人 提交于 2020-08-10 18:30:06
问题 vue has this option publicPath which lets an app to be deployed on subpath: foobar.com/my-path , making links and every asset accessible via it. From performance standpoint, I want to enable CDN on my application's assets. How can I use the URL specifically for assets (and not the hyperlinks)? Example: ./my-path/assets/app.js should become https://my-staging-cdn.com/my-path/assets/app.js ./my-path/url-2.html should remain the same The configuration below allows me to set the path and assets

How to configure Vue CLI 4 with ESLint + Airbnb rules + TypeScript + Stylelint for SCSS, in VS Code editor with autofix on save?

落爺英雄遲暮 提交于 2020-02-25 07:05:14
问题 Note: This is a similar question to my previous question on the topic, which was left partly unsolved and after which the nature of the challenge changed considerably : How to configure Vue CLI 4 with ESLint + Prettier + Airbnb rules + TypeScript + Vetur? In 2019 I was fairly obsessed by getting a 'holy grail' tooling setup configured with Vue in TypeScript and having VS Code to autofix your code on file save in .vue, .ts, and .scss files . But getting Prettier to work optimally with ESLint