mirror of
https://github.com/archtechx/airwire-demo.git
synced 2025-12-12 00:24:03 +00:00
public release
This commit is contained in:
commit
d6d22f8355
115 changed files with 67218 additions and 0 deletions
45
webpack.mix.js
vendored
Normal file
45
webpack.mix.js
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
const mix = require('laravel-mix');
|
||||
const exec = require('child_process').exec;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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.ts('resources/js/app.ts', 'public/js')
|
||||
.webpackConfig({
|
||||
plugins: [
|
||||
new (require('./vendor/archtechx/airwire/resources/js/AirwireWatcher'))(require('chokidar'), 'app/**/*.php'),
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
// We're registering the TypeScript loader here. It should only
|
||||
// apply when we're dealing with a `.ts` or `.tsx` file.
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
loader: 'ts-loader',
|
||||
options: { appendTsSuffixTo: [/\.vue$/] },
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
resolve: {
|
||||
// We need to register the `.ts` extension so Webpack can resolve
|
||||
// TypeScript modules without explicitly providing an extension.
|
||||
// The other extensions in this list are identical to the Mix
|
||||
// defaults.
|
||||
extensions: ['*', '.js', '.jsx', '.vue', '.ts', '.tsx'],
|
||||
},
|
||||
})
|
||||
.vue()
|
||||
|
||||
.postCss("resources/css/app.css", "public/css", [
|
||||
require("tailwindcss"),
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue