-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathwebpack.config.js
More file actions
31 lines (29 loc) · 858 Bytes
/
webpack.config.js
File metadata and controls
31 lines (29 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const resolve = require('path').resolve; // eslint-disable-line
// Minimal Webpack config to supply to Eslint.
// This is not actually used by Nuxt but instead mirrors
// the resolve and loader rules.
module.exports = {
resolve: {
// modules: [resolve(__dirname, 'lib'), 'node_modules'],
extensions: ['.js', '.vue'],
alias: {
'~': resolve(__dirname, './'),
'@': resolve(__dirname, './')
// your aliases go here.
}
},
/*module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.vue$/,
exclude: /node_modules/,
loader: 'vue-loader'
}
]
}*/
};