been working with Webpack yesterday and set up a basic process with it that was working.
Come back today and the fonts are no longer being transferred to the 'dist' folder. I made a change to the webpack config file to try and process images and ever since then it hasn't worked. I have since reverted the changes but still not working.
webpack.config.js:
const path = require('path');
module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'build.js',
publicPath: path.build
},
watch: true,
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
},
{
test:/\.(s*)css$/,
use:['style-loader','css-loader', 'sass-loader']
},
{
test: /\.(jpe?g|png|woff|woff2|eot|ttf|svg)(\?[a-z0-9=.]+)?$/,
loader: 'file-loader?name=fonts/[name].[ext]'
}
]
}
};
I have fonts under: src/fonts/averta/
Previously these would go into dist/fonts. My build.js file is still being created fine. Any ideas?