laravel-mix Questions

1

I'm using Laravel facing a problem when compiling assets. By default laravel provides a wrapper around webpack which is laravel-mix, laravel-mix using file called webpack.mix.js, and by using npm r...
Bernie asked 23/11, 2017 at 13:17

3

Solved

I recently created a new laravel 8 project using Breeze for the authentication and tailwind css. All worked perfectly when running npm run watch but once I run npm run prod I ran into errors. I not...
Deandre asked 21/1, 2021 at 4:12

1

Solved

Any idea of why this webpack.config.js is not setting the global LESS variable: current-vehicle defined on: /resources/scripts/theme.js? /webpack.config.js const merge = require("webpack-merge...
Modular asked 25/3, 2021 at 3:49

4

Solved

Given the webpack.mix.js of a fresh Laravel project : const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management ...
Ecru asked 29/9, 2019 at 9:2

0

I have a Laravel/Inertia.js/Svelte project where I'm importing a settings sass file based on the Zurb Foundation settings file in the svelte component: <style lang="scss"> @import ...
Kort asked 26/3, 2021 at 9:20

3

I am using laravel mix to bundle my js libraries and codes. I am trying to use ES6 style of importing and use ES6 codes if possible. I need to also import jQuery and it's library. So, i have impor...
Strother asked 18/3, 2018 at 18:25

4

Solved

I install jetstream+inertia.js into my laravel project and everything is working perfectly but I need to use bootstrap 5 in only welcome. vue component so how can I handle it? My app.js file; requi...

2

Solved

At the time of my original implementation of this, I am using Laravel 5.8, but as far as I know, this is still relevant and Larvel 7.x is out now. I'm trying to import a new javascript library into...
Criticaster asked 5/4, 2019 at 16:20

1

When I run npm run watch and update my source .js and .scss assets, the compilation is run automatically as expected. When I update the webpack.mix.js file, the changes are NOT compiled automatical...
Kaleighkalends asked 10/2, 2021 at 13:29

2

Solved

I am using Laravel 5.4 with mix to version my javascript and scss files. The problem is: it doesn't clean the previous built files and simply add a new one with a different file name i.e. app.9d3e1...
Needle asked 4/6, 2017 at 10:41

1

I'm trying to deploy my Laravel application on AWS serverless platform, I'm using dynamic imports and code splitting in my laravel-mix to compile the assets, to execute this I followed the steps in...
Kalimantan asked 12/12, 2020 at 5:5

2

I am using Tailwind CSS in Laravel with VueJS component like this. <template> </template> <script> </script> <style lang="postcss" scoped> .day-disabled { @ap...
Columbarium asked 14/11, 2019 at 2:7

2

Solved

Strange problem but I'm sure it's easily solved. I've tested on a completely empty webpack project. It says npm js-cookie has 0 dependencies so I guess this should work on its own. $ npm install ...
Palinode asked 8/12, 2019 at 10:40

10

I have been trying to set up Laravel Mix in my project and followed the install guide on the Laravel website however keep getting errors. My package.json { "private": true, "script...
Jespersen asked 28/4, 2017 at 17:29

2

My dev environment is Vagrant ScotchBox, Node 6.6.2, Npm 3.9.5. I'm trying to compile the assets of my Laravel project using Mix. yarn install yarn run dev With yarn run dev i get sh: 1: cross-...
Jailbreak asked 8/3, 2018 at 15:8

3

I set up laravel Nova locally last night, tested it, used it, everything works great on my local machine. Uploaded it to the server, and everything works great except when i head to /nova which ri...
Ertha asked 11/2, 2019 at 7:25

3

Solved

STEP1: In console/terminal. npm install --save sweetalert2 STEP2: In app.scss add this line... @import '~sweetalert2/src/sweetalert2.scss'; STEP3: In app.js add this line... const swal = req...
Romano asked 27/11, 2018 at 20:31

4

I try to start a Laravel 5.4 project without Bootstrap. After installing Laravel, I edited the following files: resources/assets/js/app.js require('./bootstrap'); package.json ... "devDepende...
Judgeship asked 13/2, 2017 at 22:28

3

Solved

In a Laravel 6 application with Laravel-Mix 4, and using the Vue preset, I need to compile my JavaScript code to be compatible for IE11. This means adding any polyfills for missing functions, compi...
Microprint asked 2/11, 2019 at 11:21

7

Solved

I'm running Laravel 5.4 on my Homestead vagrant box. I've installed all the npm dependencies with npm install command. That didn't produce any errors. In my webpack.min.js file I have: const { mi...
Gies asked 31/1, 2017 at 14:33

3

I have ES6 JavaScript code in my Vue components. In order to support IE 11 I need to convert it to ES5 code using babel and laravel-mix. How do I do that? Here is my webpack.mix.js file. let mix ...
Galling asked 16/9, 2018 at 9:20

3

Solved

I am trying to compile webpack configuration files with Laravel Mix. Following webpack episode on Laracasts Vue 2 series, // Scripts "scripts": { "dev": "node node_modules/cross-env/bin/cross-...
Tagore asked 6/2, 2017 at 13:13

1

I started using Vue using the Vue CLI template. In that template you create a file called 'vue.config.js' to define some settings. More to find here: https://cli.vuejs.org/guide/css.html#css-module...
Hospitalization asked 7/5, 2019 at 9:17

4

Solved

On production, to load my assets I use for example: <link href="{{ mix('/css/app.css') }}" rel="stylesheet"> and expect to see when compiled: <link href="https://example.com/css/app.08...
Coitus asked 5/5, 2017 at 23:34

2

I downloaded started with a Larvavel + Vue component called vuetable-2 (very nice BTW). Firstly, php artisan serve works. Everything is fine, except that it doesn't hot deploy changes to .vue file...
Petrifaction asked 15/4, 2017 at 0:13

© 2022 - 2024 — McMap. All rights reserved.