You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
740 B
38 lines
740 B
7 years ago
|
const path = require('path')
|
||
|
|
||
|
module.exports = {
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.(woff(2)?|ttf|eot|svg|otf)(\?v=\d+\.\d+\.\d+)?$/,
|
||
|
loaders: [{
|
||
|
loader: 'file-loader',
|
||
|
options: {
|
||
|
name: '[name].[ext]',
|
||
|
outputPath: 'fonts/',
|
||
|
},
|
||
|
}],
|
||
|
},
|
||
|
{
|
||
|
test: /\.scss$/,
|
||
|
loaders: [
|
||
|
'style-loader',
|
||
|
'css-loader',
|
||
|
'resolve-url-loader',
|
||
|
{
|
||
|
loader: 'sass-loader',
|
||
|
options: {
|
||
|
sourceMap: true,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'./fonts/Font_Awesome': path.resolve(__dirname, '../fonts/Font_Awesome'),
|
||
|
},
|
||
|
},
|
||
|
}
|