Added foundation and jquery

This commit is contained in:
2017-01-16 00:39:28 -08:00
parent 2582758e08
commit 4586ce2281
4 changed files with 422 additions and 329 deletions

View File

@@ -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}>

View File

@@ -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"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -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'