Я попытался обновить самую последнюю версию трафарета и обновил все остальные пакеты. < /p>
Я также пытался добавить : < /p>
Код: Выделить всё
styleUrls: [
"local-component.css",
"../../global/variables.css"
]
< /code>
Но это также не сработало. SO: < /p>
< /code> < /p>
Но не удастся, если я попытаюсь сделать локальный путь, как это: < /p>
< /code>. < /p>
Это единственный /лучший подход или что -то мне не хватает? < /p>
Это мой stencil.config.ts: < /p>
import { Config } from '@stencil/core';
export const config: Config = {
namespace: 'poc',
globalStyle: 'src/global/variables.css',
outputTargets: [
{
type: 'dist',
esmLoaderPath: 'loader'
},
{
type: 'docs-readme'
},
{
type: 'www',
serviceWorker: null // disable service workers
}
],
copy: [
{ src: 'global' }
]
};
"name": "uwe-ds-poc",
"version": "0.0.9",
"description": "Stencil Component Starter",
"main": "dist/index.js",
"module": "dist/index.mjs",
"es2015": "dist/esm/index.mjs",
"es2017": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"unpkg": "dist/poc/poc.js",
"files": [
"dist/",
"loader/"
],
"scripts": {
"build": "stencil build --docs",
"start": "stencil build --dev --watch --serve",
"test": "stencil test --spec --e2e",
"test.watch": "stencil test --spec --e2e --watchAll",
"generate": "stencil generate"
},
"devDependencies": {
"@stencil/core": "^1.8.1",
"@types/jest": "^24.0.23",
"@types/puppeteer": "1.20.2",
"jest": "^24.9.0",
"jest-cli": "24.8.0",
"puppeteer": "1.20.0"
},
"license": "MIT"
}
< /code>
Весь этот проект трафарета здесь. < /p>
Заранее спасибо. < /p>
Подробнее здесь: https://stackoverflow.com/questions/591 ... into-react
Мобильная версия