mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-24 02:47:35 -07:00
17 lines
379 B
TypeScript
17 lines
379 B
TypeScript
/**
|
|
* Inject license
|
|
*/
|
|
|
|
const StringReplacePlugin = require('string-replace-webpack-plugin');
|
|
import { licenseHtml } from '../../../src/common/build/license';
|
|
|
|
export default () => ({
|
|
enforce: 'pre',
|
|
test: /\.(vue|js)$/,
|
|
exclude: /node_modules/,
|
|
loader: StringReplacePlugin.replace({
|
|
replacements: [{
|
|
pattern: '%license%', replacement: () => licenseHtml
|
|
}]
|
|
})
|
|
});
|