mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
33 lines
924 B
JavaScript
Vendored
33 lines
924 B
JavaScript
Vendored
const mix = require('laravel-mix');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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.js('./resources/assets/vue/app.js', 'public/vue').version();
|
|
|
|
//cief todo: gulp
|
|
// if (mix.inProduction()) {
|
|
const ASSET_URL = process.env.ASSET_URL;
|
|
|
|
mix.webpackConfig(webpack => {
|
|
return {
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
"process.env.ASSET_PATH": JSON.stringify(ASSET_URL)
|
|
})
|
|
],
|
|
output: {
|
|
publicPath: ASSET_URL
|
|
}
|
|
};
|
|
});
|
|
// }
|