Absolute path for fonts
See original GitHub issueHi,
right now Webpack outputs fonts inside the css folder.
updating webpack.conf.js from
{
test: /\.(woff2?|ttf|eot|svg)$/,
loader: 'file-loader',
options: {
name: '/fonts/[name].[ext]?[hash]'
}
}
to
name: '../fonts/[name].[ext]?[hash]'
fix the issue
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:20 (2 by maintainers)
Top Results From Across the Web
Font-Face use absolute path - css - Stack Overflow
First of all that's relative path and not absolute path, absolute path means using like http://whatever.com/fonts/font_file.woff and ...
Read more >Absolute path for fonts · Issue #75 · laravel-mix ... - GitHub
The only issue is I too am seeing fonts always being copied to the public root. The only way to get them into...
Read more >How to use @font-face in CSS
The @font-face rule allows custom fonts to be loaded on a webpage. Once added to a stylesheet, the rule instructs the browser to...
Read more >src - CSS: Cascading Style Sheets - MDN Web Docs
Specifies the full name or postscript name of a locally-installed font face using the local() function, which uniquely identifies a single font face...
Read more >Problem with Path in @font-face src: url(...) - General Support
The problem I haven't been able to get the path to the font file right. The actual path to one of the files...
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
@fudgelabs You can use this function for set a path. mix.setPublicPath(‘themes/ilp/assets/dist’); mix.setResourceRoot(‘/themes/ilp/assets/dist/’);