Template files are not coppied to dist folder
See original GitHub issueThe 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.
@Component({
moduleId: module.id,
templateUrl: require('./abc.html'), // <<-----
})
export class AbcComponent implements OnInit {
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
not the best solution, but I added these scripts in package.json:
which means you must add this to devDependencies:
"copyfiles": "1.0.0"
@jvandemo It seems that it happened again in the latest versions:
https://github.com/jvandemo/generator-angular2-library/issues/199