|
|
const webpack = require('webpack');
|
|
|
const path = require('path');
|
|
|
const shelljs = require('shelljs');
|
|
|
const {cssLoader} = require('./utils.js');
|
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
|
const config = require('../../package.json');
|
|
|
const distDir = path.join(__dirname, `../dist/${config.name}/${config.version}`);
|
|
|
|
|
|
// cope img font
|
|
|
shelljs.mkdir('-p', distDir);
|
|
|
shelljs.cp('-R', path.join(__dirname, '../font/'), distDir);
|
|
|
|
|
|
let webpackConfig = {
|
|
|
entry: {
|
...
|
...
|
|