|
|
@ -1,4 +1,8 @@ |
|
|
|
|
|
const webpack = require('webpack') |
|
|
|
|
|
|
|
|
const BundleTracker = require('webpack-bundle-tracker') |
|
|
const BundleTracker = require('webpack-bundle-tracker') |
|
|
|
|
|
const dotenv = require('dotenv') |
|
|
|
|
|
dotenv.config({ path: '../sapl/.env' }) |
|
|
|
|
|
|
|
|
module.exports = { |
|
|
module.exports = { |
|
|
publicPath: 'http://localhost:8080/', |
|
|
publicPath: 'http://localhost:8080/', |
|
|
@ -32,10 +36,16 @@ module.exports = { |
|
|
.add('./src/hellow/main.js') |
|
|
.add('./src/hellow/main.js') |
|
|
.end() |
|
|
.end() |
|
|
|
|
|
|
|
|
// then add your own
|
|
|
|
|
|
config.entry('theme') |
|
|
config.entry('theme') |
|
|
.add('./src/theme/main.js') |
|
|
.add('./src/theme/main.js') |
|
|
.end() |
|
|
.end() |
|
|
|
|
|
|
|
|
|
|
|
config |
|
|
|
|
|
.plugin('theme') |
|
|
|
|
|
.use(webpack.DefinePlugin, [{ |
|
|
|
|
|
THEME_CUSTOM: JSON.stringify(process.env.THEME_CUSTOM) |
|
|
|
|
|
}]) |
|
|
|
|
|
.end() |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|