Answer the question
In order to leave comments, you need to log in
How to solve the problem with copying images included in pug/jade?
Hello others.
There is a component:
/home
/images
logo.png
home.component.ts
home.template.pug
home.styles.styl
index.ts
{
test: /\.(png|jpe?g|ico)$/,
use: [{
loader: 'file-loader',
options: {
context: './src/app/',
name: '[path][name].[ext]'
}
}]
}
img(src=require("./images/logo.png") class="logo")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question