mirror of
https://github.com/Raghu-Ch/ReactWeather.git
synced 2026-02-10 03:03:01 -05:00
Added foundation and jquery
This commit is contained in:
@@ -6,6 +6,10 @@ var Weather = require('Weather');
|
||||
var About = require('About');
|
||||
var Examples = require('Examples');
|
||||
|
||||
// load foundation
|
||||
require('style!css!foundation-sites/dist/foundation.min.css')
|
||||
$(document).foundation();
|
||||
|
||||
ReactDOM.render(
|
||||
<Router history={hashHistory}>
|
||||
<Route path="/" component={Main}>
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
"babel-preset-es2015": "^6.5.0",
|
||||
"babel-preset-react": "^6.5.0",
|
||||
"babel-preset-stage-0": "^6.5.0",
|
||||
"css-loader": "^0.23.1",
|
||||
"foundation-sites": "^6.2.0",
|
||||
"jquery": "^2.2.1",
|
||||
"script-loader": "^0.6.1",
|
||||
"style-loader": "^0.13.0",
|
||||
"webpack": "^1.12.13"
|
||||
}
|
||||
}
|
||||
|
||||
725
public/bundle.js
725
public/bundle.js
File diff suppressed because one or more lines are too long
@@ -1,5 +1,20 @@
|
||||
var webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
entry: './app/app.jsx',
|
||||
entry: [
|
||||
'script!jquery/dist/jquery.min.js',
|
||||
'script!foundation-sites/dist/foundation.min.js',
|
||||
'./app/app.jsx'
|
||||
],
|
||||
externals: {
|
||||
jquery: 'jQuery'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({
|
||||
'$': 'jquery',
|
||||
'jQuery': 'jquery'
|
||||
})
|
||||
],
|
||||
output: {
|
||||
path: __dirname,
|
||||
filename: './public/bundle.js'
|
||||
|
||||
Reference in New Issue
Block a user