diff --git a/index.html b/index.html index 4c922ef..54c4098 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,6 @@
- + diff --git a/package.json b/package.json index 760f14c..181f4c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tenrok/vue-ganttastic", - "version": "0.10.7", + "version": "0.10.8", "description": "A simple and customizable Gantt chart component for Vue.js", "keywords": [ "gantt", @@ -34,7 +34,7 @@ "files": [ "dist/*" ], - "main": "src/main.js", + "main": "./dist/index.js", "repository": { "type": "git", "url": "git+https://github.com/tenrok/vue-ganttastic.git" diff --git a/webpack.config.js b/webpack.config.js index 76a86f5..c4b7208 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,54 +6,51 @@ module.exports = { output: { path: path.resolve(__dirname, './dist'), publicPath: '/dist/', - filename: 'build.js' + filename: 'index.js', }, module: { rules: [ { test: /\.css$/, - use: [ - 'vue-style-loader', - 'css-loader' - ], - }, { + use: ['vue-style-loader', 'css-loader'], + }, + { test: /\.vue$/, loader: 'vue-loader', options: { - loaders: { - } + loaders: {}, // other vue-loader options go here - } + }, }, { test: /\.js$/, loader: 'babel-loader', - exclude: /node_modules/ + exclude: /node_modules/, }, { test: /\.(png|jpg|gif|svg)$/, loader: 'file-loader', options: { - name: '[name].[ext]?[hash]' - } - } - ] + name: '[name].[ext]?[hash]', + }, + }, + ], }, resolve: { alias: { - 'vue$': 'vue/dist/vue.esm.js' + vue$: 'vue/dist/vue.esm.js', }, - extensions: ['*', '.js', '.vue', '.json'] + extensions: ['*', '.js', '.vue', '.json'], }, devServer: { historyApiFallback: true, noInfo: true, - overlay: true + overlay: true, }, performance: { - hints: false + hints: false, }, - devtool: '#eval-source-map' + devtool: '#eval-source-map', } if (process.env.NODE_ENV === 'production') { @@ -62,17 +59,17 @@ if (process.env.NODE_ENV === 'production') { module.exports.plugins = (module.exports.plugins || []).concat([ new webpack.DefinePlugin({ 'process.env': { - NODE_ENV: '"production"' - } + NODE_ENV: '"production"', + }, }), new webpack.optimize.UglifyJsPlugin({ - sourceMap: true, + sourceMap: false, compress: { - warnings: false - } + warnings: false, + }, }), new webpack.LoaderOptionsPlugin({ - minimize: true - }) + minimize: true, + }), ]) }