1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00
invoiceninja/webpack.mix.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

const mix = require("laravel-mix");
const tailwindcss = require("tailwindcss");
2018-10-04 19:10:43 +02:00
require("laravel-mix-purgecss");
mix.js("resources/js/app.js", "public/js")
.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-23 18:10:42 +01:00
mix.sass("resources/sass/app.scss", "public/css")
.options({
processCssUrls: false,
postCss: [tailwindcss("./tailwind.config.js")]
})
.purgeCss({
enabled: mix.inProduction(),
folders: ["resources", "views", "portal", "ninja2020"],
extensions: ["html", "php"]
});
mix.version();
mix.disableSuccessNotifications();