pingcrm/webpack.mix.js

30 lines
948 B
JavaScript
Raw Permalink Normal View History

2021-12-08 12:15:39 -03:00
const process = require('process')
const mix = require('laravel-mix')
2019-03-18 08:53:00 -03:00
const cssImport = require('postcss-import')
const cssNesting = require('postcss-nesting')
2021-12-08 12:15:39 -03:00
const webpackConfig = require('./webpack.config')
2019-03-05 18:10:11 -03:00
/*
|--------------------------------------------------------------------------
| 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 the application as well as bundling up all the JS files.
|
*/
mix
.js('resources/js/app.js', 'public/js')
2021-12-08 12:15:39 -03:00
.vue({ runtimeOnly: (process.env.NODE_ENV || 'production') === 'production' })
.webpackConfig(webpackConfig)
.postCss('resources/css/app.css', 'public/css', [
// prettier-ignore
cssImport(),
cssNesting(),
require('tailwindcss'),
])
2019-03-18 08:53:00 -03:00
.version()
2019-04-22 12:25:49 -03:00
.sourceMaps()