|
|
@ -1,6 +1,7 @@ |
|
|
|
const path = require('path'); |
|
|
|
const path = require('path'); |
|
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin'); |
|
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin'); |
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin'); |
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin'); |
|
|
|
|
|
|
|
const { ContextReplacementPlugin } = require('webpack') |
|
|
|
const glob = require("glob"); |
|
|
|
const glob = require("glob"); |
|
|
|
|
|
|
|
|
|
|
|
function transpileViewScript(file) { |
|
|
|
function transpileViewScript(file) { |
|
|
@ -74,7 +75,8 @@ const appJs = |
|
|
|
}, |
|
|
|
}, |
|
|
|
plugins: [ |
|
|
|
plugins: [ |
|
|
|
new ExtractTextPlugin('../css/app.css'), |
|
|
|
new ExtractTextPlugin('../css/app.css'), |
|
|
|
new CopyWebpackPlugin([{ from: 'static/', to: '../' }]) |
|
|
|
new CopyWebpackPlugin([{ from: 'static/', to: '../' }]), |
|
|
|
|
|
|
|
new ContextReplacementPlugin(/moment[\/\\]locale$/, /en/) |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|