laravel-mix Questions
1
How should I include webpack plugins if I use WebPack AND Laravel Mix? I am confused which file I add the plugin code into.
My below attempt doesn't seem to be running my plugin. The plugin should...
Flatcar asked 2/5, 2018 at 13:44
1
I'm looking for a way to build my assets using Laravel Mix on my dev machine which will then match the parameters on the production.
For instance, I have a base url for my API which is http://foo....
Bigley asked 21/2, 2018 at 12:51
1
Solved
Why does minified file equal to a non-minified?
const { mix } = require('laravel-mix');
mix.styles([
'public/some.css',
'public/thing.css',
], 'public/css/index.css');
mix.minify('public/css/i...
Tarantella asked 10/11, 2017 at 6:50
1
Solved
I am trying to load Bootstrap Vue into a Laravel 5.6 project
The official docs say to modify your webpack.config.js file like:
+ module: {
+ rules: [
+ {
+ test: /\.css$/,
+ use: [
+ 'style-loa...
Aesculapius asked 7/4, 2018 at 18:27
1
Solved
With Laravel 5.5 I'm using laravel-mix to compile my assets.
However something is not clear to me: what is the difference between mix.js and mix.scripts and why would I use one instead of the othe...
Ardellaardelle asked 28/2, 2018 at 17:9
1
Solved
When Laravel Webpack/Mix executes and converts SASS to CSS, it changes the relative paths like url('../images/background.png'); to absolute paths like url('/images/background.png');.
Is it possible...
Decuple asked 1/1, 2018 at 7:48
1
I'm in the process of re-writing my electron app with ES6, using Laravel Mix to compile the app JS and SASS. Now the main process loads up the render process fine. Once that happens my app.js loads...
Beagle asked 3/5, 2017 at 19:37
0
How do you guys manage to use Laravel Mix if there are many third-party JavaScript plugins? I use Laravel Mix for normal things, but now I have an Admin Panel Dashboard theme, and there are lots of...
Cherian asked 5/10, 2017 at 7:14
1
Trying to use laravel-mix, but when i try npm install, or npm install --no-bin-links, or sudo npm install, i get this error below.. I'm on windows 8.1 using homestead and vagrant.. Please any help ...
Unsuspecting asked 4/9, 2017 at 17:34
1
Solved
I'm compiling my javascript files with Laravel mix, and as I am not very knowledgeable yet on Babel and package.json, I want to ask if Laravel Mix supports ES8, especially async/await?
If I try it...
Depurative asked 26/8, 2017 at 11:19
1
Solved
I'm trying to create a global component using laravel mix with vue js, but when accessing property this.$el it's undefined. Here's my component file:
Datepicker.vue
<template>
<input
t...
Corbett asked 30/7, 2017 at 16:58
1
Solved
I need to use an external library on web pack with laravel-mix. On web pack I should do something like this as described in the webpack docs
{
output: {
// export itself to a global var
librar...
Salzman asked 1/5, 2017 at 14:52
2
Solved
I currently have a problem trying to use multiple entry points in my Mix file.
// Mix frontend resources.
mix.js('resources/assets/js/app.js', 'public/js')
.extract([
'jquery', 'bootstrap', 'aos...
Giordano asked 12/7, 2017 at 1:7
1
Solved
I am currently in the process of diving into Laravel Mix and so far, whilst I fully understand what Laravel Mix is and how it works, I am trying to understand a little more about the common practic...
Franconia asked 6/3, 2017 at 9:39
2
Solved
I have a fresh install of Laravel 5.4. I as well have the folowing versions installed on my Windows PC
node: 6.11.0
npm:5.0.3
I have already run npm install, however, when i run npm run watch, i g...
Indrawn asked 1/7, 2017 at 21:21
5
Solved
I am using Laravel 5.4 in my project and trying to set up the frontend build system using Mix. Everything is working fine except I could not be able to get browser auto reload option. There is noth...
Yokel asked 5/2, 2017 at 2:12
1
Solved
My Laravel Mix app will be placed in a subdirectory on the server like: http://localhost/pat-os-server/public/
An image's path in my vue component compiles from
<img id="logo" src="../assets/i...
Item asked 28/6, 2017 at 8:39
1
I'm looking to use both Laravel and Materialize css in a single project. What's the best way to do this via the sass files? I'm looking to use laravel's built in webpack system. The website says if...
Commissar asked 22/2, 2017 at 3:29
2
Solved
What is the difference between npm run watch and npm run watch-poll in Laravel mix?
I cannot see any difference between the output they give.
Nims asked 23/5, 2017 at 6:51
1
Solved
So I'm getting the following error on my browser console line when I'm testing my Laravel 5.4 website:
Uncaught ReferenceError: webpackJsonp is not defined at app.js:1
Now, to be honest, I have ...
Snowmobile asked 9/4, 2017 at 8:30
1
Solved
Understanding Laravel Mix
I am currently in the process of migrating one of my websites to Laravel in order to make it a little more maintainable in future... I have plenty of experience building A...
Instantaneous asked 5/3, 2017 at 23:48
1
Solved
I am working for the first time with Laravel. With the 5.4 version they introduced the laraval mix. I tried to paste my SASS of the static website (I compile this with gulp) into sass files in the ...
Lowborn asked 22/2, 2017 at 19:34
© 2022 - 2024 — McMap. All rights reserved.