mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-05-14 17:33:22 +12:00
44 lines
878 B
JavaScript
44 lines
878 B
JavaScript
'use strict'
|
|
|
|
import path from 'path'
|
|
|
|
let inProduction = process.env.NODE_ENV === 'production' || process.argv.indexOf('-p') !== -1
|
|
|
|
export default {
|
|
entry: {
|
|
fimfic2epub: ['./src/main']
|
|
},
|
|
output: {
|
|
path: path.join(__dirname, '/'),
|
|
filename: './extension/[name].js'
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: {
|
|
sourceMaps: inProduction,
|
|
presets: ['es2015'],
|
|
plugins: ['transform-strict-mode']
|
|
}
|
|
},
|
|
{
|
|
test: /\.styl$/,
|
|
loader: 'raw-loader!stylus-loader'
|
|
}
|
|
],
|
|
noParse: [
|
|
/[\/\\]node_modules[\/\\]tidy-html5[\/\\]tidy\.js$/
|
|
]
|
|
},
|
|
|
|
resolve: {
|
|
extensions: ['', '.js', '.json', '.styl'],
|
|
root: [path.join(__dirname, '/src')]
|
|
},
|
|
|
|
plugins: [],
|
|
|
|
devtool: 'inline-source-map',
|
|
debug: true
|
|
}
|