Skip to content
This repository was archived by the owner on Apr 25, 2020. It is now read-only.

Commit 94e44a1

Browse files
committed
Provide compiled version for distribution
Fix #2
1 parent c6906c1 commit 94e44a1

File tree

7 files changed

+646
-537
lines changed

7 files changed

+646
-537
lines changed

dist/vue-float-label.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/vue-float-label.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/vue-float-label.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-float-label.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue-float-label",
33
"version": "1.3.0",
44
"description": "Float label pattern for Vue.js",
5-
"main": "vue-float-label.js",
5+
"main": "dist/vue-float-label.js",
66
"repository": "git@github.com:bkzl/vue-float-label.git",
77
"author": "Bartlomiej Kozal <bkzl@me.com>",
88
"license": "MIT",
@@ -13,7 +13,7 @@
1313
"lint": "npm run eslint && npm run stylelint",
1414
"eslint": "eslint --ext .js,.vue vue-float-label.js components",
1515
"stylelint": "stylelint 'components/*.vue'",
16-
"dist": "vue build vue-float-label.js --prod --lib"
16+
"dist": "webpack --config webpack.dist.config.js --optimize-minimize"
1717
},
1818
"files": [
1919
"vue-float-label.js",
@@ -41,7 +41,9 @@
4141
}
4242
},
4343
"devDependencies": {
44+
"babel-core": "^6.24.0",
4445
"babel-eslint": "^7.1.1",
46+
"babel-loader": "^6.4.1",
4547
"eslint": "^3.16.1",
4648
"eslint-config-standard": "^6.2.1",
4749
"eslint-plugin-html": "^2.0.1",
@@ -53,6 +55,8 @@
5355
"stylelint-config-recess-order": "^1.0.0",
5456
"stylelint-config-standard": "^16.0.0",
5557
"stylelint-processor-html": "^1.0.0",
56-
"vue-cli": "^2.8.1"
58+
"vue-cli": "^2.8.1",
59+
"vue-loader": "^11.3.4",
60+
"webpack": "^2.3.3"
5761
}
5862
}

webpack.dist.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
var path = require('path')
2+
3+
module.exports = {
4+
entry: './vue-float-label.js',
5+
output: {
6+
path: path.join(__dirname, './dist'),
7+
filename: 'vue-float-label.js',
8+
library: 'vueFloatLabel',
9+
libraryTarget: 'umd'
10+
},
11+
resolve: {
12+
extensions: ['.vue', '.js']
13+
},
14+
module: {
15+
loaders: [
16+
{
17+
test: /\.vue$/,
18+
use: 'vue-loader'
19+
},
20+
{
21+
test: /\.js$/,
22+
use: 'babel-loader',
23+
exclude: /node_modules/
24+
}
25+
]
26+
}
27+
}

0 commit comments

Comments
 (0)