Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsxc/jsxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2018-07-04 17:14:49 +0300
committersualko <klaus@jsxc.org>2018-07-04 17:14:49 +0300
commit5be019be265b69712a95ab248d505588878d8086 (patch)
tree1d0b33ec6f4f28a668bb37ef26fad1cff899d459 /webpack.config.js
parentd8d01d65679529cae1874c268290bc0290553dd8 (diff)
refactor public api
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index d9d9bc8c..032b0eb7 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -5,6 +5,8 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
+const JS_BUNDLE_NAME = 'jsxc.bundle.js';
+
const extractSass = new ExtractTextPlugin({
filename: 'styles/jsxc.bundle.css',
allChunks: true,
@@ -13,6 +15,7 @@ const extractSass = new ExtractTextPlugin({
const definePlugin = new webpack.DefinePlugin({
__VERSION__: JSON.stringify(require("./package.json").version),
__BUILD_DATE__: JSON.stringify((new Date()).toDateString()),
+ __BUNDLE_NAME__: JS_BUNDLE_NAME,
});
const fileLoader = {
@@ -26,7 +29,7 @@ const fileLoader = {
module.exports = {
entry: ['./scss/main.scss', './src/index.ts'],
output: {
- filename: 'jsxc.bundle.js',
+ filename: JS_BUNDLE_NAME,
path: path.resolve(__dirname, './dist/'),
publicPath: 'dist/',
libraryTarget: 'var',