Skip to content

Instantly share code, notes, and snippets.

@gaupoit
Last active February 23, 2019 10:49
Show Gist options
  • Save gaupoit/376b850c50c208d345515aaf86ceb518 to your computer and use it in GitHub Desktop.
Save gaupoit/376b850c50c208d345515aaf86ceb518 to your computer and use it in GitHub Desktop.
Webpack common configuration
const path = require('path');
const { VueLoaderPlugin } = require('vue-loader');
const output = path.join(__dirname, '../admin/js/dist');
module.exports = {
mode: 'development',
entry: {
'gists-snippet-bundle': './src/index.js'
},
output: {
path: output,
filename: './[name].js',
},
module: {
rules: [
{
test: /\.vue$/,
exclude: /node_modules/,
loader: 'vue-loader',
}
]
},
plugins: [
new VueLoaderPlugin(),
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment