-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
637c3cc
commit 80f26e4
Showing
8 changed files
with
10,807 additions
and
10,198 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"trailingComma": "none", | ||
"singleQuote": true, | ||
"arrowParens": "avoid" | ||
} |
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,7 +1,6 @@ | ||
{ | ||
"lerna": "2.0.0", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "independent" | ||
"packages": ["packages/*"], | ||
"version": "independent", | ||
"npmClient": "yarn" | ||
} |
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 |
---|---|---|
@@ -1,45 +1,49 @@ | ||
import webpack from 'webpack'; | ||
import webpack from "webpack"; | ||
|
||
module.exports = { | ||
devtool: 'source-map', | ||
externals: [{ | ||
'react': { | ||
root: 'React', | ||
commonjs2: 'react', | ||
commonjs: 'react', | ||
amd: 'react' | ||
} | ||
}, { | ||
'react-dom': { | ||
root: 'ReactDOM', | ||
commonjs2: 'react-dom', | ||
commonjs: 'react-dom', | ||
amd: 'react-dom' | ||
} | ||
}], | ||
devtool: "source-map", | ||
mode: "production", | ||
externals: [ | ||
{ | ||
react: { | ||
root: "React", | ||
commonjs2: "react", | ||
commonjs: "react", | ||
amd: "react", | ||
}, | ||
}, | ||
{ | ||
"react-dom": { | ||
root: "ReactDOM", | ||
commonjs2: "react-dom", | ||
commonjs: "react-dom", | ||
amd: "react-dom", | ||
}, | ||
}, | ||
], | ||
module: { | ||
rules: [{ | ||
enforce: 'pre', | ||
test: /\.js?$/, | ||
exclude: /node_modules/, | ||
loader: 'eslint-loader' | ||
}, { | ||
test: /\.js?$/, | ||
use: ['babel-loader'], | ||
exclude: /node_modules/ | ||
}] | ||
rules: [ | ||
{ | ||
enforce: "pre", | ||
test: /\.js?$/, | ||
exclude: /node_modules/, | ||
loader: "eslint-loader", | ||
}, | ||
{ | ||
test: /\.js?$/, | ||
use: ["babel-loader"], | ||
exclude: /node_modules/, | ||
}, | ||
], | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('production') | ||
}), | ||
new webpack.SourceMapDevToolPlugin(), | ||
new webpack.optimize.DedupePlugin(), | ||
new webpack.optimize.OccurrenceOrderPlugin(), | ||
new webpack.optimize.AggressiveMergingPlugin(), | ||
new webpack.optimize.UglifyJsPlugin({ | ||
include: /\.min\.js$/, | ||
compress: { warnings: false } | ||
}) | ||
] | ||
compress: { warnings: false }, | ||
}), | ||
], | ||
}; |
Oops, something went wrong.