Commit a205b127 authored by Taylor Otwell's avatar Taylor Otwell

add mix settings

parent 7cf27b21
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"prod": "gulp --production", "mix": "cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"dev": "gulp watch" "watch": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"hot": "cross-env NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"production": "cross-env NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
}, },
"devDependencies": { "devDependencies": {
"axios": "^0.15.2", "axios": "^0.15.2",
"bootstrap-sass": "^3.3.7", "bootstrap-sass": "^3.3.7",
"gulp": "^3.9.1",
"jquery": "^3.1.0", "jquery": "^3.1.0",
"laravel-elixir": "^6.0.0-14", "laravel-mix": "^0.4.0",
"laravel-elixir-vue-2": "^0.2.0",
"laravel-elixir-webpack-official": "^1.0.2",
"lodash": "^4.16.2", "lodash": "^4.16.2",
"vue": "^2.0.1" "vue": "^2.0.1"
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
const elixir = require('laravel-elixir'); let mix = require('laravel-mix').mix;
require('laravel-elixir-vue-2');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Elixir Asset Management | Mix Asset Management
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Elixir provides a clean, fluent API for defining some basic Gulp tasks | Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass | for your Laravel application. By default, we are compiling the Sass
| file for your application as well as publishing vendor resources. | file for your application, as well as bundling up your JS files.
| |
*/ */
elixir((mix) => { mix.js('resources/assets/js/app.js', 'public/js')
mix.sass('app.scss') .sass('resources/assets/sass/app.scss', 'public/css');
.webpack('app.js');
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment