diaREact/webpack.mix.js

32 lines
920 B
JavaScript
Raw Normal View History

2022-02-11 17:26:15 +01:00
const mix = require('laravel-mix');
mix
.webpackConfig({
resolve: {
fallback: {
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify")
}
}
})
.ts('resources/js/app.ts', 'public/js')
.react()
.sass('resources/sass/app.scss', 'public/css');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applications. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
mix.postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
]);