add mix settings
This commit is contained in:
parent
7cf27b2146
commit
a205b127c6
19
gulpfile.js
19
gulpfile.js
|
@ -1,19 +0,0 @@
|
||||||
const elixir = require('laravel-elixir');
|
|
||||||
|
|
||||||
require('laravel-elixir-vue-2');
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Elixir Asset Management
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
|
|
||||||
| for your Laravel application. By default, we are compiling the Sass
|
|
||||||
| file for your application as well as publishing vendor resources.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
elixir((mix) => {
|
|
||||||
mix.sass('app.scss')
|
|
||||||
.webpack('app.js');
|
|
||||||
});
|
|
11
package.json
11
package.json
|
@ -1,17 +1,16 @@
|
||||||
{
|
{
|
||||||
"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"
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,15 @@
|
||||||
|
let mix = require('laravel-mix').mix;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Mix Asset Management
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Mix provides a clean, fluent API for defining some Webpack build steps
|
||||||
|
| for your Laravel application. By default, we are compiling the Sass
|
||||||
|
| file for your application, as well as bundling up your JS files.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
mix.js('resources/assets/js/app.js', 'public/js')
|
||||||
|
.sass('resources/assets/sass/app.scss', 'public/css');
|
Loading…
Reference in New Issue