Comments (5)
Is the manifest located in the directory which is defined in the plugin settings?
from craft-plugin-mix.
The manifest should go in the public directory, correct?
from craft-plugin-mix.
What's inside your asset path setting?
From my understanding it looks after it inside the combination of both, the public and asset path defined in your mix settings.
Have you tried it inside your public/assets
folder?
If yes the asset path setting in your mix plugin should say assets
and the manifest should look something like this I think.
{
"/main.js": "/main.js?id=4201cd156b22ae18fa0a",
"/main.css": "/main.css?id=d4c7912ff5280a471880"
}
from craft-plugin-mix.
Ah, it's working now that I put /
in the assets path. Here's my manifest:
{
"/assets/main.js": "/assets/main.js?id=9f07326b951738c55067",
"/assets/main.css": "/assets/main.css?id=c76cb4c1290a73484190"
}
from craft-plugin-mix.
I'm having this same issue. I have a config file:
return array(
'*' => array(
'publicPath' => 'public_html',
'assetPath' => 'assets',
),
);
and a mix-manifest.json
file which is located at /public_html/assets
:
{
"/js/site.min.js": "/js/site.min.js?id=21169849ee6ff21c1d67",
"/css/master.min.css": "/css/master.min.css?id=6a8cb615bc4690b994e7"
}
and when I output mix('css/master.min.css')
, I get /assets/css/master.min.css
. I've also tried updating my manifest to have /assets/
at the beginning of the path but get the same output.
from craft-plugin-mix.
Related Issues (16)
- Configuration of paths HOT 4
- Not picking up versioned assets HOT 1
- "Lazily" find a versioned file? HOT 1
- Thank You. HOT 1
- Customize the mix config file HOT 1
- Images in css files only visible after a re-save
- FR: Make module .env value aware
- Not able to get the path correct, always 404 resource not found. HOT 1
- Not possible to have /css or /js HOT 1
- Craft 4 compatibility? HOT 24
- Versioning doesn't work if mix public path is not set correctly - mix.setPublicPath()
- Craft 5 compatibility? HOT 2
- I think I'm missing something here ... HOT 4
- Asset Path being directly in @web HOT 2
- [FR] Hot Module Replacement support HOT 3
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 craft-plugin-mix.