ReCast is a multi platform restreaming tool, you can stream with one servers to multiple services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
675 B

var path = require('path')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
var webpackConfig = {
resolve: {
alias: {
'src': resolve('src'),
'assets': resolve('src/assets'),
'components': resolve('src/components')
}
},
module: {
rules: []
}
}
var esLintRule = {
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter')
}
}
if(process.env.ENABLE_ESLINT && process.env.ENABLE_ESLINT === 'true'){
webpackConfig.module.rules.unshift(esLintRule) //add eslint
}
module.exports = webpackConfig