mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
This PR establishes a base Snowboard framework in the Backend. While we won't likely have any specific Snowboard widgets or functionality in the 1.1 branch, it will allow people to use Snowboard in the Backend should they wish. Fixes #541. Co-authored-by: Luke Towers <github@luketowers.ca>
28 lines
635 B
JavaScript
28 lines
635 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',
|
|
)
|
|
|
|
// Polyfill for all targeted browsers
|
|
.polyfill({
|
|
enabled: mix.inProduction(),
|
|
useBuiltIns: 'usage',
|
|
targets: '> 0.5%, last 2 versions, not dead, Firefox ESR, not ie > 0',
|
|
});
|