25 lines
375 B
JavaScript
25 lines
375 B
JavaScript
|
const path = require('path');
|
||
|
const packageName = require('../package.json').name;
|
||
|
|
||
|
const config = {
|
||
|
output: {
|
||
|
filename: '[name].js'
|
||
|
},
|
||
|
|
||
|
devtool: false,
|
||
|
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
[packageName]: path.resolve(__dirname, '..')
|
||
|
}
|
||
|
},
|
||
|
|
||
|
resolveLoader: {
|
||
|
alias: {
|
||
|
[packageName]: path.resolve(__dirname, '..')
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = config;
|