🥰Laravel Mix with public folder outside the project folder (ok)

https://laracasts.com/discuss/channels/elixir/laravel-mix-with-public-folder-outside-the-project-folder

File for laravel mix 8 C:\xampp713\htdocs\phongkhamcom\package.json

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "mix",
        "watch": "mix watch",
        "watch-poll": "mix watch -- --watch-options-poll=1000",
        "hot": "mix watch --hot",
        "prod": "npm run production",
        "production": "mix --production"
    },
    "devDependencies": {
        "@popperjs/core": "^2.10.2",
        "axios": "^0.21",
        "bootstrap": "^5.1.3",
        "bootstrap-sass": "^3.4.3",
        "cross-env": "^7.0.3",
        "jquery": "^3.7.0",
        "laravel-mix": "^6.0.6",
        "lodash": "^4.17.19",
        "postcss": "^8.1.14",
        "resolve-url-loader": "^5.0.0",
        "sass": "^1.32.11",
        "sass-loader": "^11.0.1",
        "vue": "^3.3.4"
    }
}

Chú ý: Chúng ta có thể tạo ra từng file riêng biệt hoặc gộp chung

Riêng biệt

Gộp chung file

👏 Hoặc cao cấp hơn 1

👏 Hoặc cao cấp hơn 2

👏 Hoặc cao cấp hơn 3

C:\xampp\htdocs\wayarmy\wp-content\plugins\wl-bootstrap\resources\js\app.js

C:\xampp\htdocs\wayarmy\wp-content\plugins\wl-bootstrap\resources\js\script.js

C:\xampp\htdocs\wayarmy\wp-content\plugins\wl-bootstrap\webpack.mix.js

Last updated

Was this helpful?