All Questions
739
questions
0
votes
0
answers
23
views
webpack.mix laravel-mix-purgecss own separate css for each landing page
Each storage directory has a folder with a landing page, which has its own css and index.html
You need to go through the directory with landing pages and process it through PurgeCSS to remove unused ...
0
votes
0
answers
24
views
How to split a css from a .scss mobile first using Webpack and Laravel Mix
Good morning. This is the code in my webpack.mix.js:
let mix = require("laravel-mix");
require("laravel-mix-compress");
mix.setPublicPath("assets");
mix
.sass("...
1
vote
1
answer
201
views
Could not load content for webpack://SwaggerUIBundle/src/core/system.js" error in Swagger UI
While attempting to use Swagger UI to document a Laravel project with the URL http://localhost:8014/api/documentation, I encounter the following error in the browser console:
TypeError: Cannot ...
0
votes
0
answers
47
views
How to stop generating chunks in laravel mix
chunks are generating in web configuration - output
mix.webpackConfig({
resolve: {
modules: [path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, 'Vue')],
alias: {
...
0
votes
0
answers
47
views
laravel 8 npm run undefined operation error
I am trying to work on a laravel 8 upgrade project. I find it painstaking to make the packages work for npm and run my laravel mix in webpack.
Current env:
laravel ^8.6
node - v14.21.3
npm - 6.14.18
...
0
votes
1
answer
46
views
Laravel 7 with Webpack and importing JS with ES Modules
Laravel 7, using Webpack and importing JS with ES Modules. I want to use webpackChunkNames and import JS files only when needed.
I want to export JS files from resources/js/ (for the main app.js) and ...
0
votes
2
answers
280
views
How to handle redirect from proxied server in webpack-dev-server proxy?
I'm having a webpack-dev-server enabled with watcher and reload on every change.
This frontend dev server is in docker container, and is proxying everything to another docker container, backend, which ...
0
votes
0
answers
197
views
EsModule JS Dynamic importing using Vite instead of Webpack?
I have a number of Laravel projects which use Webpack and ES5 Modules to create/provide separate JS files which can be imported only as and when required by a page. Some of my projects are quite ...
0
votes
1
answer
81
views
ERROR in ./resources/js/components/ExampleComponent.vue 1:0 in Installing Laravel vue auth command
working in Laravel App and my node version is 16 and working with Laravel 9 and install php artisan ui vue --auth.my web.pack.js is like this
mix.js('resources/js/app.js', 'public/js')
.postCss('...
0
votes
1
answer
77
views
Config laravel mix to build specific vue app when component files change
My Laravel project with multiple Vue.js applications. The project directory structure is as follows:
├── public
│ ├── js
│ │ ├── app_the_first.js
│ │ ├── app_the_second.js
├── resources
│ ├...
0
votes
0
answers
49
views
Upgrading Laravel in a monolothic Laravel + Inertia's + Vue3 app. Must I upgrade inertiajs too?
I have an application made with Laravel 8 + Inertia + Vue 3, and everything is working pretty well.
My situation is that I need to upgrade Laravel to v10 without modifying anything on the frontend ...
0
votes
0
answers
55
views
npm run prod not generating css
I am using Laravel with VueJS and, for generating optimized CSS and JS, I am using webpack.mix.js.
When I run npm run dev, CSS files are generated quite fine while if I run npm run prod, it generates ...
0
votes
0
answers
42
views
I'm trying to run the 'npm run dev' and I get the errors. I'm working on a project using laravel 9. I'm using Visual Studio Code as the code editor
I get this error :
C:\xampp\xampp\htdocs\MVivant\webpack.mix.js:1 ��m
SyntaxError: Invalid or unexpected token
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/...
0
votes
0
answers
63
views
Set correct output paths for mix generated asset files in Laravel/Vue project
I can't get my auto generated assets to the right directory.
I have these files in my Laravel project:
<laravel-root>/resources/js/app.js (initializes vue app)
<laravel-root>/resources/...
0
votes
0
answers
397
views
migrating from webpack to vite, the resources images are not loaded
I want to migrate my SPA (laravel 9 with Vue3) from laravel-mix (webpack) to vite.
I have done all the settings .... but I am not sure how to convert the existing webpack.mix.js to vite.config.js
The ...