1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Use browser target dist of react stuff

for faster compile
This commit is contained in:
Rokt33r
2016-04-18 05:47:13 +09:00
parent d878028dcc
commit 948377ba93
5 changed files with 52 additions and 4 deletions

View File

@@ -19,9 +19,15 @@ var config = {
new webpack.NoErrorsPlugin(),
new NodeTargetPlugin()
],
stylus: {
use: [require('nib')()],
import: [
'~nib/lib/nib/index.styl',
path.resolve(__dirname, 'browser/styles/index.styl')
]
},
externals: [
'electron',
'socket.io-client',
'md5',
'superagent',
'superagent-promise',
@@ -33,7 +39,14 @@ var config = {
'fs-jetpack',
'markdown-it-math',
'@rokt33r/sanitize-html',
'markdown-it-checkbox'
'markdown-it-checkbox',
'season',
{
react: 'var React',
'react-dom': 'var ReactDOM',
'react-redux': 'var ReactRedux',
'redux': 'var Redux'
}
]
}