{"id":19916858,"url":"https://github.com/srackham/tag-loader","last_synced_at":"2025-05-03T06:30:38.010Z","repository":{"id":26555563,"uuid":"30009314","full_name":"srackham/tag-loader","owner":"srackham","description":"Riot tag file loader for Webpack","archived":false,"fork":false,"pushed_at":"2016-11-06T17:38:35.000Z","size":156,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T00:14:46.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srackham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-29T07:42:15.000Z","updated_at":"2017-02-06T13:33:14.000Z","dependencies_parsed_at":"2022-07-12T10:49:32.090Z","dependency_job_id":null,"html_url":"https://github.com/srackham/tag-loader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srackham%2Ftag-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srackham%2Ftag-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srackham%2Ftag-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srackham%2Ftag-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srackham","download_url":"https://codeload.github.com/srackham/tag-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252154732,"owners_count":21702982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T21:47:50.060Z","updated_at":"2025-05-03T06:30:37.778Z","avatar_url":"https://github.com/srackham.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Riot tag file loader for Webpack\n\n[Webpack](http://webpack.github.io/) can use this loader to automatically compile [Riot](https://muut.com/riotjs/) tag files. Inspired by [this GitHub Gist](https://gist.github.com/guyromm/77d044c1fc75b117c99b).\n\n\n## Install\n\n    npm install tag-loader --save-dev\n\n\n#### webpack.config.js Configuration\n```\n  :\nmodule: {\nloaders: [\n  { test: /\\.tag$/, loader: 'tag' },\n    :\n]\n}\n  :\n```\n\nUse query parameters to include Riot compiler command options. Examples:\n\n    { test: /\\.tag$/, loader: 'tag?compact' },\n    { test: /\\.tag$/, loader: 'tag', query: {compact: 'true'} },\n\nSee also the [Webpack loader documentation](http://webpack.github.io/docs/using-loaders.html).\n\n\n## ES5 projects\nOnce you've installed and configured the `tag-loader` you can require Riot tag files into your project using the `require()` function e.g.\n\n    require('./tags.tag');\n\n\n## ES6 projects\nOnce you've installed and configured the `tag-loader` and [6to5-loader](https://www.npmjs.com/package/6to5-loader) you can import Riot tag files into your project using the ES6 module `import` statement e.g.\n\n    import './tags.tag'\n\n**NOTE**: I do not recommend using ES6 code inside Riot tag files, [here's why](https://muut.com/riotjs/forum/#!/using:problem-referencing-this-in).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrackham%2Ftag-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrackham%2Ftag-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrackham%2Ftag-loader/lists"}