Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
zcfan committed May 2, 2017
0 parents commit 1ceeb87
Show file tree
Hide file tree
Showing 8 changed files with 3,273 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
43 changes: 43 additions & 0 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
var path = require('path');
var webpack = require('webpack');

module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, '../dist'),
filename: 'vue-ladda.js'
},
devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel-loader"
},
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loaders: {
scss: 'vue-style-loader!css-loader!sass-loader'
}
}
}
]
},
plugins:[
// TODO: move to prod config file
//new webpack.optimize.UglifyJsPlugin({
// beautify: false,
// mangle: {
// screw_ie8: true,
// keep_fnames: true
// },
// compress: {
// screw_ie8: true
// },
// comments: false
//})
]
};
Loading

0 comments on commit 1ceeb87

Please sign in to comment.