mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
This took inspiration from https://github.com/hasinhayder/vue3-icon-picker but was modified greatly in the end. Credit to @robertalexa
33 lines
784 B
JavaScript
33 lines
784 B
JavaScript
/* eslint-disable */
|
|
const mix = require('laravel-mix');
|
|
require('laravel-mix-polyfill');
|
|
/* eslint-enable */
|
|
|
|
mix.setPublicPath(__dirname);
|
|
|
|
mix
|
|
.options({
|
|
terser: {
|
|
extractComments: false,
|
|
},
|
|
runtimeChunkPath: './assets/js/build',
|
|
})
|
|
|
|
// Compile Snowboard assets for the Backend
|
|
.js(
|
|
'./assets/ui/js/index.js',
|
|
'./assets/ui/js/build/backend.js',
|
|
)
|
|
.js(
|
|
'./formwidgets/iconpicker/assets/src/iconpicker.js',
|
|
'./formwidgets/iconpicker/assets/dist/iconpicker.js',
|
|
)
|
|
.vue()
|
|
|
|
// Polyfill for all targeted browsers
|
|
.polyfill({
|
|
enabled: mix.inProduction(),
|
|
useBuiltIns: 'usage',
|
|
targets: '> 0.5%, last 2 versions, not dead, Firefox ESR, not ie > 0',
|
|
});
|