Refactoring
This commit is contained in:
parent
e237c53766
commit
fb70e3b176
12 changed files with 202 additions and 121 deletions
13
webpack/plugins/const.ts
Normal file
13
webpack/plugins/const.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Constant Replacer
|
||||
*/
|
||||
|
||||
import * as webpack from 'webpack';
|
||||
|
||||
import version from '../../src/version';
|
||||
const constants = require('../../src/const.json');
|
||||
|
||||
export default () => new webpack.DefinePlugin({
|
||||
VERSION: JSON.stringify(version),
|
||||
THEME_COLOR: JSON.stringify(constants.themeColor)
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue