Skip to content

Commit 098ec12

Browse files
committed
Fix issue autoNumeric#4 Error when building with webpack 2 on linux
1 parent 968df20 commit 098ec12

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

build/webpack.base.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module.exports = {
1919
alias: {
2020
src : 'src',
2121
vue$: 'vue/dist/vue.common.js',
22-
AutoNumeric : 'node_modules/autonumeric/dist/autoNumeric.min',
2322
},
2423

2524
extensions: ['.js', '.json', '.vue', '.scss'],
@@ -71,6 +70,6 @@ module.exports = {
7170

7271
// cf. https://webpack.js.org/configuration/externals/
7372
externals: {
74-
AutoNumeric: 'AutoNumeric',
73+
AutoNumeric: 'autonumeric',
7574
},
7675
};

dist/vue-autonumeric.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
*/
66
(function webpackUniversalModuleDefinition(root, factory) {
77
if(typeof exports === 'object' && typeof module === 'object')
8-
module.exports = factory(require("AutoNumeric"));
8+
module.exports = factory(require("autonumeric"));
99
else if(typeof define === 'function' && define.amd)
10-
define("VueAutonumeric", ["AutoNumeric"], factory);
10+
define("VueAutonumeric", ["autonumeric"], factory);
1111
else if(typeof exports === 'object')
12-
exports["VueAutonumeric"] = factory(require("AutoNumeric"));
12+
exports["VueAutonumeric"] = factory(require("autonumeric"));
1313
else
14-
root["VueAutonumeric"] = factory(root["AutoNumeric"]);
14+
root["VueAutonumeric"] = factory(root["autonumeric"]);
1515
})(this, function(__WEBPACK_EXTERNAL_MODULE_43__) {
1616
return /******/ (function(modules) { // webpackBootstrap
1717
/******/ // The module cache

dist/vue-autonumeric.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)