I would like to use static asset in my documentation but I'm getting 404
My asset folder is on the root of the project under src/ and called static
I have added this path in assetsDir in my styleguide.config.js
const path = require('path')
module.exports = {
assetsDir: 'src/static',
require: [
'babel-polyfill',
path.join(__dirname, 'src/styles/style.scss')
],
};
This is how I'm trying to reference it in _icon.scss
.ic_file{
background: url("/static/img/svg/ic_file.svg") no-repeat center / auto;
width: 20px;
height: 20px;
display: inline-block;
}
I am stuck in and can't see what I'm doing wrong. Thanks for helping!!