Skip to content

Laravel-mix standalone, vendor files not found #2456

@iskandarovBakshi

Description

@iskandarovBakshi
  • Laravel Mix Version: #.#.# (npm list --depth=0)
    ├── autoprefixer@9.8.6
    ├── bootstrap@4.5.0
    ├── browser-sync@2.26.12
    ├── browser-sync-webpack-plugin@2.0.1
    ├── cross-env@7.0.2
    ├── font-awesome@4.7.0
    ├── jquery@3.5.1
    ├── laravel-mix@5.0.4
    ├── node-sass@4.14.1
    ├── popper.js@1.16.1
    ├── resolve-url-loader@3.1.0
    ├── sass-loader@8.0.2
    ├── vue-template-compiler@2.6.11
    └── UNMET PEER DEPENDENCY webpack@^1 || ^2 || ^3

npm ERR! peer dep missing: webpack@^1 || ^2 || ^3, required by browser-sync-webpack-plugin@2.0.1

  • Node Version (node -v): v12.8.3
  • NPM Version (npm -v): 6.14.6
  • OS:

Description:

I'm using laravel-mix in a standalone psd to html project, it will be good to set publicUrl for vendor urls,

image
image
after npm run prod mix generates, i simply run index.html in the chrome, font files from node_modules not found
image

image
font urls are wrong.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions