mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
37 lines
813 B
JavaScript
37 lines
813 B
JavaScript
const vueLoaderConfig = require('./vue-loader.config')
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Webpack Shared Config
|
|
|
|
|
| This is the config which is extented by the server and client
|
|
| webpack config files
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
module.exports = {
|
|
devtool: 'source-map',
|
|
entry: {
|
|
vendor: ['vue', 'vue-router', 'vue-meta', 'es6-promise', 'es6-object-assign']
|
|
},
|
|
output: {
|
|
publicPath: '/_nuxt/'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.vue$/,
|
|
loader: 'vue',
|
|
options: vueLoaderConfig
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
loader: 'babel',
|
|
exclude: /node_modules/,
|
|
options: {
|
|
presets: ['es2015', 'stage-2']
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|