Last active
February 23, 2019 10:49
-
-
Save gaupoit/376b850c50c208d345515aaf86ceb518 to your computer and use it in GitHub Desktop.
Webpack common configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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