Comments (12)
If I manually navigate to the file, it exists, but it doesn't load at all in the browser from the browserSync blob. I don't see the file in Network.
Sorry, for all those comments, I'm commenting as I debug and find new stuff.
from wp-webpack-script.
I've found that publicPath is undefined in my webpack config rules generated by wpackio.
from wp-webpack-script.
[ { loader: 'file-loader', options: { name: '[name]-[hash:8].[ext]', outputPath: 'web/assets/', publicPath: undefined } } ]
from wp-webpack-script.
Hi, I have the same issue. Any ETA on this ?
from wp-webpack-script.
Hi,
I will take a look.
from wp-webpack-script.
Hi,
Could you please give me a repo for reproduction? I have checked some asset files and they do seem to work.
from wp-webpack-script.
I have checked with specific .woff
files and they do work. Please share a repro repo so that I can look into it.
Also make sure you are on version 3.5.0 or greater.
from wp-webpack-script.
Hi, I don't have time to make a repo for this but it's actually pretty simple to reproduce. You have to make a fresh WordPress install and apply the example theme of this repo (this one), then install npm and composer dependencies. After add some fonts in the assets directory and declare them in src/theme/main.scss
. Then run npm run start
and you'll end up with the Webpack dev server running but the fonts won't be loaded (as seen on the screenshot).
from wp-webpack-script.
Although if you run npm run build
they'll load correctly.
from wp-webpack-script.
Maybe it had something to do with style-loader
. Please upgrade to v4.1.0. I have removed style loader in favor of HMR from mini-css-extract-plugin
.
from wp-webpack-script.
Thanks, I tested the v4.1.0 and it works now. Like you said it might be because of style-loader
. You can close this issue.
from wp-webpack-script.
Great...
from wp-webpack-script.
Related Issues (20)
- The manifest.json file updates without running build HOT 6
- Caching Plugins and ContentHash HOT 6
- Dependency Dashboard
- Asset name with ~ (6G Firewall - 403 error) HOT 3
- Issue with JSX? HOT 2
- Recipe for SSG / Static html generation and preload HOT 3
- 403 Forbidden on vendors script file HOT 1
- Strange enqueue behaviour, with nothing being enqueued at all. Needs fix in Enqueue.php:297 source HOT 2
- Shortcode params HOT 1
- [fork-ts-checker-webpack-plugin] breaking change in 7.0 HOT 1
- bannerConfig should not default if not filled, it should be left out
- Typescript not working HOT 6
- wpack project in subdirectory results in broken asset paths
- update to webpack 5 HOT 3
- Conflict with React Router 6
- Conflicting file-loader documentation
- Wp
- How to make server works on docker
- Is this project dead? HOT 4
- Not able to setup site on the local system. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-webpack-script.