webpack fonts via file-loader
This commit is contained in:
@@ -16,15 +16,15 @@ if (env === 'production') {
|
||||
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
|
||||
|
||||
plugins.push(new UglifyJsPlugin({
|
||||
minimize: true,
|
||||
sourceMap: true
|
||||
}
|
||||
minimize: true,
|
||||
sourceMap: true
|
||||
}
|
||||
));
|
||||
plugins.push(new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: '"production"'
|
||||
}
|
||||
'process.env': {
|
||||
NODE_ENV: '"production"'
|
||||
}
|
||||
}
|
||||
));
|
||||
|
||||
appName = appName + '.js';
|
||||
@@ -51,6 +51,12 @@ module.exports = {
|
||||
test: /\.(vue|js)$/,
|
||||
loader: 'eslint-loader',
|
||||
exclude: /node_modules/
|
||||
}, {
|
||||
test: /\.(jpe?g|png|gif|woff|woff2|ttf|svg|eot)(\?.*)?$/i,
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
name: '[name].[sha512:hash:base64:7].[ext]'
|
||||
}
|
||||
}, {
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader'
|
||||
|
||||
Reference in New Issue
Block a user