in nuxt.config.js [89:119]
extend(config) {
// eslint-disable-next-line no-param-reassign
config.resolve.alias.vue$ = 'vue/dist/vue.esm.js'; // Full Vue version for being able to use dynamic templates
config.module.rules.splice(0, 1);
config.module.rules.push({
test: /\.js$/,
include: /node-modules/,
loader: 'babel-loader',
});
config.module.rules.push({
test: /\.vue$/,
loader: 'vue-loader',
options: {
// https://vue-loader.vuejs.org/options.html#prettify
prettify: false,
},
});
config.module.rules.push({
test: /\.css$/,
include: /node-modules/,
loader: 'css-loader',
});
// Silence webpack warnings about moment/pikaday not being able to resolve.
// Pikaday is a dependency of gitlab-ui.
config.plugins.push(new webpack.IgnorePlugin(/moment/, /pikaday/));
},