forked from vuejs/vuex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
100 additions
and
83 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
html, body { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
color: #2c3e50; | ||
} | ||
|
||
ul { | ||
line-height: 1.5em; | ||
padding-left: 1.5em; | ||
} | ||
|
||
a { | ||
color: #7f8c8d; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
color: #4fc08d; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Vuex Examples</title> | ||
<link rel="stylesheet" href="/global.css"> | ||
</head> | ||
<body style="padding: 0 20px"> | ||
<h1>Vuex Examples</h1> | ||
<ul> | ||
<li><a href="counter">Counter</a></li> | ||
<li><a href="counter-hot">Counter with Hot Reload</a></li> | ||
<li><a href="shopping-cart">Shopping Cart</a></li> | ||
<li><a href="todomvc">TodoMVC</a></li> | ||
<li><a href="chat">FluxChat</a></li> | ||
</ul> | ||
</body> | ||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
const fs = require('fs') | ||
const path = require('path') | ||
const webpack = require('webpack') | ||
|
||
module.exports = { | ||
|
||
devtool: 'inline-source-map', | ||
|
||
entry: fs.readdirSync(__dirname).reduce((entries, dir) => { | ||
const fullDir = path.join(__dirname, dir) | ||
const entry = path.join(fullDir, 'app.js') | ||
if (fs.statSync(fullDir).isDirectory() && fs.existsSync(entry)) { | ||
entries[dir] = entry | ||
} | ||
|
||
return entries | ||
}, {}), | ||
|
||
output: { | ||
path: path.join(__dirname, '__build__'), | ||
filename: '[name].js', | ||
chunkFilename: '[id].chunk.js', | ||
publicPath: '/__build__/' | ||
}, | ||
|
||
module: { | ||
loaders: [ | ||
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel' }, | ||
{ test: /\.vue$/, loader: 'vue' } | ||
] | ||
}, | ||
|
||
resolve: { | ||
alias: { | ||
vuex: path.resolve(__dirname, '../build/dev-entry') | ||
} | ||
}, | ||
|
||
plugins: [ | ||
new webpack.optimize.CommonsChunkPlugin('shared.js'), | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development') | ||
}) | ||
] | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters