Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template files are not coppied to dist folder

See original GitHub issue

The template files of components are not copied to the dist folder.

It would be possible to create them there directly but this does not seem like a clean solution.

    templateUrl: require('./abc.html'), // <<-----
export class AbcComponent implements OnInit {

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (13 by maintainers)

github_iconTop GitHub Comments

jbrechtcommented, Nov 30, 2016

not the best solution, but I added these scripts in package.json:

    "htmlcopy": "copyfiles src/**/*.html dist",
    "lesscopy": "copyfiles src/**/*.less dist",
    "dist": "npm run tsc && npm run htmlcopy && npm run lesscopy",

which means you must add this to devDependencies: "copyfiles": "1.0.0"

abaladcommented, Sep 19, 2017

@jvandemo It seems that it happened again in the latest versions:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Watch template files and copy them to dist/ folder
I have the "same" request to for a CRUD graphql back-end server, but don't want to use gulp or webpack just to keep...
Read more >
Eleventy Walk Through - Configuration Files
Eleventy provides a method to copy those over without treating them like templates. This is done in the configuration file by adding addPassthroughCopy....
Read more >
CopyFiles@2 - Copy files v2 task - Microsoft Learn
Copy files from a source folder to a target folder using patterns matching file paths (not folder paths).
Read more >
Passthrough File Copy — Eleventy
In the above code sample css is not currently a recognized Eleventy template, but Eleventy will search for any *.css files inside of...
Read more >
Static Asset Handling - Vite
If using the Vue plugin, asset references in Vue SFC templates are ... served at root path / during dev, and copied to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found