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

switch Angular -> React(half done)

This commit is contained in:
Rokt33r
2015-07-06 02:03:40 +09:00
parent 1a832c1fc4
commit 361e9c629e
27 changed files with 1012 additions and 43 deletions

33
webpack.config.js Normal file
View File

@@ -0,0 +1,33 @@
module.exports = {
entry: {
main: './browser/main/index.jsx'
},
output: {
filename: '[name].js', //this is the default name, so you can skip it
publicPath: 'http://localhost:8090/assets'
},
devtool: "#inline-source-map", // Sourcemap
module: {
loaders: [
{
//tell webpack to use jsx-loader for all *.jsx files
test: /\.jsx$/,
loader: 'jsx-loader?insertPragma=React.DOM&harmony'
},
{
test: /\.styl$/,
loader: 'style-loader!css-loader!stylus-loader'
}
]
},
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'
},
resolve: {
extensions: ['', '.js', '.jsx']
}
}