Skip to content

Instantly share code, notes, and snippets.

@seangwright
Last active March 5, 2019 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seangwright/7c94c680c3712b914378a3ce08f38a22 to your computer and use it in GitHub Desktop.
Save seangwright/7c94c680c3712b914378a3ce08f38a22 to your computer and use it in GitHub Desktop.
ken120-mvc-vuejs-webpack.config.js
const path = require('path');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
entry: path.resolve(__dirname, 'Scripts', 'inline-editors-bundle.js'),
output: {
path: path.resolve(__dirname, 'Content', 'InlineEditors'),
filename: "inline-editors-bundle.dist.js"
},
externals: [{
vue: 'Vue'
}],
module: {
rules: [{
test: /\.vue$/,
loader: "vue-loader",
}, {
test: /\.scss$/,
use: [
'vue-style-loader',
'css-loader',
'sass-loader'
]
}]
},
plugins: [
new VueLoaderPlugin()
],
performance: {
hints: 'error'
},
stats: 'minimal',
mode: 'development'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment