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

update design & refresh behavior

This commit is contained in:
Rokt33r
2015-07-17 12:12:47 +09:00
parent 0dde2eb20f
commit 05325e7276
10 changed files with 75 additions and 28 deletions

View File

@@ -3,14 +3,13 @@ module.exports = {
main: './browser/main/index.jsx'
},
output: {
filename: '[name].js', //this is the default name, so you can skip it
filename: '[name].js',
publicPath: 'http://localhost:8090/assets'
},
devtool: "#inline-source-map", // Sourcemap
devtool: '#inline-source-map',
module: {
loaders: [
{
//tell webpack to use jsx-loader for all *.jsx files
test: /\.jsx$/,
loader: 'jsx-loader?insertPragma=React.DOM&harmony'
},
@@ -25,13 +24,12 @@ module.exports = {
]
},
externals: {
//don't bundle the 'react' npm package with our bundle.js
//but get it from a global 'React' variable
'react': 'React',
'react/addons': 'React',
'react-router': 'ReactRouter',
'ace': 'ace',
'reflux': 'Reflux'
'reflux': 'Reflux',
'moment': 'moment'
},
resolve: {
extensions: ['', '.js', '.jsx']