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