From 76b4c3295e30a2e0f65e6a73e58e4e8864f0166c Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 13 Jul 2021 22:13:21 +0300 Subject: [PATCH] Add replacer for using structure like /assets/(img|fonts) with dependencies node-sass and sass-loader --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f376d70..73253b1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "precommit": "npm run lint", "cordova": "npm run build-spa && npm run replace-relative-paths && npm run copy-cordova && npm run run-android;", "build-spa": "nuxt build --spa", - "replace-relative-paths": "replace '/nuxtfiles/' 'nuxtfiles/' dist --recursive && replace '/assets/' 'nuxtfiles/' dist --recursive && replace '(href|src|\"href\"|\"src\")=\"/' '$1=\"../' dist --recursive && replace '(href|src|\"href\"|\"src\"):\"/' '$1:\"../' dist --recursive", + "replace-relative-paths": "replace '/nuxtfiles/' 'nuxtfiles/' dist --recursive && replace '/assets/' 'nuxtfiles/' dist --recursive && replace 'nuxtfiles/(img|fonts)' '../nuxtfiles/$1' && replace '(href|src|\"href\"|\"src\")=\"/' '$1=\"../' dist --recursive && replace '(href|src|\"href\"|\"src\"):\"/' '$1:\"../' dist --recursive", "copy-cordova": "cp -R dist/* cordova/www/", "clear-cordova": "rm -R cordova/www/*", "run-android": "cd cordova && cordova run android"