Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"presets": ["es2015", "stage-2"],
"plugins": ["transform-runtime"],
"comments": false
"plugins": [
"transform-runtime",
"transform-async-to-generator"
]
}
8 changes: 6 additions & 2 deletions build/webpack.base.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var path = require('path')
var config = require('../config')
var utils = require('./utils')
var projectRoot = path.resolve(__dirname, '../')
var nodeModulesRoot = path.resolve(__dirname, '../node_modules')

module.exports = {
entry: {
Expand Down Expand Up @@ -34,8 +35,11 @@ module.exports = {
{
test: /\.js$/,
loader: 'babel',
include: projectRoot,
exclude: /node_modules/
include: [
projectRoot,
path.resolve(nodeModulesRoot, 'bsv'),
path.resolve(nodeModulesRoot, 'axios')
]
},
{
test: /\.json$/,
Expand Down
8 changes: 1 addition & 7 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ var webpackConfig = merge(baseWebpackConfig, {
filename: config.build.index,
template: 'index.html',
inject: true,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
minify: false,
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency'
}),
Expand Down
Loading