Forked from
Eclipse Foundation / IT / Webdev / solstice-assets
203 commits behind, 1 commit ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
webpack-solstice-assets.mix.js 1.12 KiB
/*!
* Copyright (c) 2021 Eclipse Foundation, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Contributors:
* Christopher Guindon <chris.guindon@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
*/
let mix = require('laravel-mix');
require('laravel-mix-transpile-node-modules');
mix.transpileNodeModules(['eclipsefdn-solstice-assets']);
class EclipseFdnSolsticeAssets {
register() {
console.log('Loading eclipsefdn-solstice-assets default configurations.');
}
webpackConfig(config) {
config.module.rules.unshift( {
test: /\.mustache$/,
loader: 'mustache-loader',
});
// support for corejs fallbacks
config.resolve.fallback = config.resolve.fallback || {};
config.resolve.fallback['querystring'] = require.resolve('querystring-es3');
config.resolve.alias = config.resolve.alias || {};
config.resolve.alias['jquery'] = 'jquery/src/jquery';
}
}
mix.extend('EclipseFdnSolsticeAssets', new EclipseFdnSolsticeAssets());