2020-03-13 22:17:08 +01:00
|
|
|
const mix = require("laravel-mix");
|
|
|
|
const tailwindcss = require("tailwindcss");
|
2018-10-04 19:10:43 +02:00
|
|
|
|
2020-03-24 23:13:20 +01:00
|
|
|
require("laravel-mix-purgecss");
|
|
|
|
|
2020-03-13 22:17:08 +01:00
|
|
|
mix.js("resources/js/app.js", "public/js")
|
2020-03-24 23:13:20 +01:00
|
|
|
.js(
|
|
|
|
"resources/js/clients/payment_methods/authorize-stripe-card.js",
|
|
|
|
"public/js/clients/payment_methods/authorize-stripe-card.js"
|
|
|
|
)
|
|
|
|
.js(
|
|
|
|
"resources/js/clients/invoices/action-selectors.js",
|
|
|
|
"public/js/clients/invoices/action-selectors.js"
|
|
|
|
)
|
|
|
|
.js(
|
|
|
|
"resources/js/clients/invoices/payment.js",
|
|
|
|
"public/js/clients/invoices/payment.js"
|
|
|
|
)
|
|
|
|
.js(
|
|
|
|
"resources/js/clients/quotes/action-selectors.js",
|
|
|
|
"public/js/clients/quotes/action-selectors.js"
|
|
|
|
)
|
|
|
|
.js(
|
|
|
|
"resources/js/clients/quotes/approve.js",
|
|
|
|
"public/js/clients/quotes/approve.js"
|
2020-03-25 14:08:37 +01:00
|
|
|
)
|
|
|
|
.js(
|
|
|
|
"resources/js/clients/payments/process.js",
|
|
|
|
"public/js/clients/payments/process.js"
|
2020-03-26 22:43:44 +01:00
|
|
|
)
|
|
|
|
.js(
|
|
|
|
"resources/js/setup/setup.js",
|
|
|
|
"public/js/setup/setup.js"
|
2020-04-03 22:12:12 +02:00
|
|
|
)
|
|
|
|
.js(
|
|
|
|
"resources/js/clients/shared/pdf.js",
|
|
|
|
"public/js/clients/shared/pdf.js"
|
2020-03-24 23:13:20 +01:00
|
|
|
);
|
2020-03-23 18:10:42 +01:00
|
|
|
|
|
|
|
mix.sass("resources/sass/app.scss", "public/css")
|
2020-03-13 22:17:08 +01:00
|
|
|
.options({
|
|
|
|
processCssUrls: false,
|
|
|
|
postCss: [tailwindcss("./tailwind.config.js")]
|
2020-03-24 23:13:20 +01:00
|
|
|
})
|
|
|
|
.purgeCss({
|
|
|
|
enabled: mix.inProduction(),
|
|
|
|
extensions: ["html", "php"]
|
2020-03-13 22:17:08 +01:00
|
|
|
});
|
2018-10-16 13:42:43 +02:00
|
|
|
|
|
|
|
mix.version();
|
2020-04-03 22:12:12 +02:00
|
|
|
mix.disableNotifications();
|