File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
1
const fs = require ( 'fs' )
2
2
const path = require ( 'path' )
3
3
const webpack = require ( 'webpack' )
4
+ const { merge } = require ( 'webpack-merge' )
4
5
5
6
const getDevlandFile = require ( './lib/get-devland-file' )
6
7
const { version } = getDevlandFile ( 'quasar/package.json' )
7
8
9
+ const transformAssetUrls = getDevlandFile ( 'quasar/dist/transforms/loader-asset-urls.json' )
10
+
8
11
function getCssPreprocessor ( api ) {
9
12
return [ 'sass' , 'scss' , 'styl' ] . find ( ext => {
10
13
return fs . existsSync (
@@ -53,6 +56,25 @@ module.exports = (api, options) => {
53
56
54
57
const strategy = options . pluginOptions . quasar . importStrategy || 'kebab'
55
58
59
+ chain . module . rule ( 'vue' ) . use ( 'vue-loader' ) . tap ( options => ( {
60
+ ...options ,
61
+ transformAssetUrls : merge (
62
+ {
63
+ base : null ,
64
+ includeAbsolute : false ,
65
+ tags : {
66
+ video : [ 'src' , 'poster' ] ,
67
+ source : [ 'src' ] ,
68
+ img : [ 'src' ] ,
69
+ image : [ 'xlink:href' , 'href' ] ,
70
+ use : [ 'xlink:href' , 'href' ]
71
+ }
72
+ } ,
73
+ options . transformAssetUrls || { } ,
74
+ transformAssetUrls
75
+ )
76
+ } ) )
77
+
56
78
if ( [ 'kebab' , 'pascal' , 'combined' ] . includes ( strategy ) ) {
57
79
chain . module . rule ( 'vue' )
58
80
. use ( 'vue-auto-import-quasar' )
Original file line number Diff line number Diff line change 21
21
"bugs" : {
22
22
"url" : " https://github.com/quasarframework/vue-cli-plugin-quasar/issues"
23
23
},
24
- "homepage" : " https://github.com/quasarframework/vue-cli-plugin-quasar#readme"
24
+ "homepage" : " https://github.com/quasarframework/vue-cli-plugin-quasar#readme" ,
25
+ "dependencies" : {
26
+ "webpack-merge" : " ^5.7.3"
27
+ }
25
28
}
You can’t perform that action at this time.
0 commit comments