Markdown integration
// webpack.config.js
// ...
module: {
rules: [
// ...
{ test: /\.md$/i, use: ['@aurelia/webpack-loader', 'markdown-loader'], exclude: /node_modules/ }
]
},
// ...npm i markdown-loader -Ddeclare module '*.md' {
import { IContainer, PartialBindableDefinition } from 'aurelia';
export const name: string;
export const template: string;
export default template;
export const dependencies: string[];
export const containerless: boolean | undefined;
export const bindables: Record<string, PartialBindableDefinition>;
export const shadowOptions: { mode: 'open' | 'closed' } | undefined;
export function register(container: IContainer);
}
Last updated
Was this helpful?