Code Monkey home page Code Monkey logo

Comments (5)

ChidVanid avatar ChidVanid commented on September 13, 2024

Is the manifest located in the directory which is defined in the plugin settings?

from craft-plugin-mix.

bigskillet avatar bigskillet commented on September 13, 2024

The manifest should go in the public directory, correct?

from craft-plugin-mix.

ChidVanid avatar ChidVanid commented on September 13, 2024

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.

bigskillet avatar bigskillet commented on September 13, 2024

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.

tyssen avatar tyssen commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.