init
This commit is contained in:
34
webpack.mix.js
Normal file
34
webpack.mix.js
Normal file
@@ -0,0 +1,34 @@
|
||||
let mix = require('laravel-mix');
|
||||
let path = require('path');
|
||||
let postCss = require('@tailwindcss/postcss');
|
||||
|
||||
mix.setResourceRoot('../');
|
||||
mix.setPublicPath(path.resolve('./'));
|
||||
|
||||
mix.webpackConfig({
|
||||
watchOptions: { ignored: [
|
||||
path.posix.resolve(__dirname, './node_modules'),
|
||||
path.posix.resolve(__dirname, './css'),
|
||||
path.posix.resolve(__dirname, './js')
|
||||
] }
|
||||
});
|
||||
|
||||
mix.js('resources/js/app.js', 'js');
|
||||
|
||||
mix.postCss("resources/css/app.css", "css", postCss);
|
||||
|
||||
mix.postCss("resources/css/editor-style.css", "css", postCss);
|
||||
|
||||
// mix.browserSync({
|
||||
// proxy: 'http://tailpress.test',
|
||||
// host: 'tailpress.test',
|
||||
// open: 'external',
|
||||
// port: 8000,
|
||||
// files: ["*.php", "**/*.php"]
|
||||
// });
|
||||
|
||||
if (mix.inProduction()) {
|
||||
mix.version();
|
||||
} else {
|
||||
mix.options({ manifest: false });
|
||||
}
|
||||
Reference in New Issue
Block a user