Writing webpack.config.js like this seems invalid
module:{ loaders:[{ test:/\.txt$/, loader:'file-loader' }] },
It’s been a long time and I’m almost crying
Isn’t there an example on the official website of file-loader:
In config
{ test: /\.html?$/, loader: 'file?name=html/[name].[ext]' },
In the js entry file (flash.txt is now in the same directory as the entry js)
require("file-loader?name=[hash]!./flash.txt");
Isn’t there an example on the official website of file-loader:
In config
In the js entry file (flash.txt is now in the same directory as the entry js)