-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
Hello,
I'm trying to add VueJS to webpack (from my Vue application), but it doesn't work.
My code:
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: './frontend/app.js',
output: {
path: path.resolve(__dirname, './public/js'),
publicPath: '/js/',
filename: 'app.js'
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loaders: {
}
}
},
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
}
]
},
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
},
devServer: {
historyApiFallback: true,
noInfo: true
},
performance: {
hints: false
},
}
Metadata
Metadata
Assignees
Labels
No labels