-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add loading animation and prepare for production release
- Loading branch information
1 parent
d045c5c
commit 1513d58
Showing
5 changed files
with
184 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,6 @@ typings/ | |
# lnd files | ||
lnd.cert | ||
admin.macaroon | ||
|
||
# built files | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
'use strict'; | ||
|
||
var path = require('path'); | ||
var webpack = require('webpack'); | ||
var HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
|
||
module.exports = { | ||
entry: [ | ||
path.join(__dirname, 'client/main.js') | ||
], | ||
output: { | ||
path: path.join(__dirname, '/dist/'), | ||
filename: '[name]-[hash].min.js', | ||
publicPath: '/' | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: 'client/index.tpl.html', | ||
inject: 'body', | ||
filename: 'index.html' | ||
}), | ||
new webpack.optimize.OccurrenceOrderPlugin(), | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compressor: { | ||
warnings: false, | ||
screw_ie8: true | ||
} | ||
}) | ||
], | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.jsx?$/, | ||
exclude: /node_modules/, | ||
loader: 'babel-loader', | ||
query: { | ||
"presets": [ | ||
["env", {"modules": false}], | ||
"stage-1", | ||
"react" | ||
], | ||
"plugins": [ | ||
"transform-runtime", | ||
"transform-decorators-legacy" | ||
] | ||
} | ||
}, | ||
{ | ||
test: /\.json?$/, | ||
loader: 'json' | ||
}, | ||
{ | ||
test: /\font-awesome.css$/, | ||
loader: 'css-loader', | ||
query: { | ||
modules: false | ||
} | ||
}, | ||
{ | ||
test: /\.css$/, | ||
loaders: [ | ||
{ | ||
loader: 'style-loader' | ||
}, | ||
{ | ||
loader: 'css-loader', | ||
query: { | ||
modules: true, | ||
localIdentName: '[name]__[local]___[hash:base64:5]' | ||
} | ||
}, | ||
{ | ||
loader: 'resolve-url-loader' | ||
} | ||
], | ||
}, | ||
{ | ||
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: "url-loader?limit=10000&mimetype=application/font-woff" | ||
}, | ||
{ | ||
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: "file-loader" | ||
}, | ||
] | ||
} | ||
}; |