apostrophe
Version:
The Apostrophe Content Management System.
28 lines (26 loc) • 609 B
JavaScript
const webpack = require('webpack');
const { VueLoaderPlugin } = require('vue-loader');
module.exports = (options, apos) => {
return {
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
sourceMap: true
}
}
]
},
plugins: [
// make sure to include the plugin for the magic
new VueLoaderPlugin(),
new webpack.DefinePlugin({
__VUE_OPTIONS_API__: 'true',
__VUE_PROD_DEVTOOLS__: 'false',
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false'
})
]
};
};