webpack-auto-inject-version/tools/webpack.conf.js

39 lines
642 B
JavaScript

import path from 'path';
export default {
target: 'node',
entry: ['./src/main.js'],
resolve: {
extensions: ['.js']
},
output: {
filename: 'WebpackAutoInjectVersion.js',
path: path.resolve(process.cwd(), 'dist'),
libraryTarget: 'umd'
},
module: {
loaders: [
{
test: /\.js$/,
use: [
'babel-loader',
'eslint-loader'
],
include: [
path.resolve('src')
]
},
{
test: /\.json$/,
loader: 'json-loader'
},
{
test: /\.txt$/,
loader: 'raw-loader'
}
]
},
plugins: [
]
};