compile laravel mix 5.4

1

Hello, I have a problem with laravel 5.4 I'm trying to put a personal js library of mine and I can not even remove the vue

My package.json

{
  "private": true,
  "scripts": {
    "dev": "npm run development",
    "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch-poll": "npm run watch -- --watch-poll",
    "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "prod": "npm run production",
    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  },
  "devDependencies": {
    "axios": "^0.15.3",
    "bootstrap-sass": "^3.3.7",
    "cross-env": "^3.2.3",
    "jquery": "^3.1.1",
    "laravel-mix": "0.*",
    "lodash": "^4.17.4"
  }
}

My assests / js / app.js

 require('./bootstrap');

and my webpack.mix.js

const { mix } = require('laravel-mix');



 mix.js('resources/assets/js/app.js', 'public/js')
 .sass('resources/assets/sass/app.scss', 'public/css');
 .js('resources/assets/js/cidades-estados-1-4.js', 'public/js');

I give an npm update after a npm run dev or prod but it does not update, it is still with the vue.js that I removed

    
asked by anonymous 01.06.2017 / 17:40

1 answer

1

Try the following:

const { mix } = require('laravel-mix');

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css')
   .scripts([
      'resources/assets/js/cidades-estados-1-4.js'
    ], 
    'public/js/app.js'
);
    
10.06.2017 / 00:00