Skip to content

Commit

Permalink
Merge branch 'release/0.1.0-alpha.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Dominiak committed Jun 13, 2020
2 parents ecf7949 + 9e0a54c commit ea1aaba
Show file tree
Hide file tree
Showing 14 changed files with 1,073 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3
}
]
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules

// Analyser
dist/stats.json
dist/report.html

// Storybook
storybook-static
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.0-alpha.4] - 2020-06-13
### Added
- Examples to docs
- Babel presets

## [0.1.0-alpha.3] - 2020-06-13
### Added
- docs & storybook deployment
Expand Down
2 changes: 1 addition & 1 deletion config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { VueLoaderPlugin } = require('vue-loader');
module.exports = {
entry: './src/index.js',
output: {
filename: 'vue-snap.js',
library: 'VueSnap',
libraryTarget: 'umd'
},
Expand All @@ -15,6 +14,7 @@ module.exports = {
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
Expand Down
6 changes: 5 additions & 1 deletion config/webpack/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ const merge = require('webpack-merge')
const common = require('./webpack.common.js')

module.exports = merge(common, {
mode: 'development'
mode: 'development',
devtool: 'inline-source-map',
output: {
filename: 'vue-snap.js'
}
})
7 changes: 7 additions & 0 deletions config/webpack/webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
const TerserPlugin = require('terser-webpack-plugin')

module.exports = merge(common, {
mode: 'production',
output: {
filename: 'vue-snap.min.js'
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin({
sourceMap: false
})]
}
})
Loading

0 comments on commit ea1aaba

Please sign in to comment.