forked from Ch4s3/ink_stream
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Ch4s3#33 from Ch4s3/develop
Merge new js stuff
- Loading branch information
Showing
13 changed files
with
72 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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
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
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,4 @@ | ||
removeFlash = function removeFlash(e) { | ||
const flashEl = e.target.parentNode; | ||
flashEl.parentNode.removeChild(flashEl); | ||
} |
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 @@ | ||
require('components/annotation_form.jsx') |
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 was deleted.
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 |
---|---|---|
@@ -1,3 +1,26 @@ | ||
const environment = require('./environment') | ||
const webpack = require('webpack') | ||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin') | ||
|
||
environment.plugins.set( | ||
'UglifyJs', | ||
new webpack.optimize.UglifyJsPlugin({ | ||
sourceMap: true, | ||
comments: false, // remove comments | ||
compress: { | ||
conditionals: true, | ||
unused: true, | ||
dead_code: true, // big one--strip code that will never execute | ||
warnings: false, // good for prod apps so users can't peek behind curtain | ||
drop_debugger: true, | ||
conditionals: true, | ||
evaluate: true, | ||
// drop_console: true, // strips console statements | ||
sequences: true, | ||
booleans: true, | ||
pure_getters: true, | ||
loops: true, | ||
} | ||
}) | ||
) | ||
module.exports = environment.toWebpackConfig() |