Fix standalone build

This commit is contained in:
daniel-j 2018-03-20 22:13:46 +01:00
parent 5698067473
commit c2e11b3f6d
2 changed files with 14 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "fimfic2epub", "name": "fimfic2epub",
"version": "1.7.28", "version": "1.7.29",
"description": "Tool to generate improved EPUB ebooks from Fimfiction stories", "description": "Tool to generate improved EPUB ebooks from Fimfiction stories",
"author": "djazz", "author": "djazz",
"license": "MIT", "license": "MIT",

View file

@ -202,6 +202,19 @@ const bundleStaticNpmModuleConfig = {
module: { module: {
rules: [ rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
sourceMaps: !inProduction,
presets: [['env', {
targets: {
node: 'current'
}
}]]
}
},
{ {
test: /\.styl$/, test: /\.styl$/,
use: ['raw-loader', 'stylus-loader'] use: ['raw-loader', 'stylus-loader']