-
-
Notifications
You must be signed in to change notification settings - Fork 574
Buffalo needs to be updated to support Webpack 2.2.x #195
Comments
|
|
@stanislas-m the generated |
This webpack.config.js works with the var webpack = require("webpack");
var CopyWebpackPlugin = require('copy-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: [
"./assets/js/application.js",
"./assets/css/application.scss",
"./node_modules/jquery-ujs/src/rails.js"
],
output: {
filename: "application.js",
path: "./public/assets"
},
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}),
new ExtractTextPlugin("application.css"),
new CopyWebpackPlugin([{
from: "./assets",
to: ""
}], {
ignore: [
"css/*",
"js/*",
]
})
],
module: {
loaders: [{
test: /\.jsx?$/,
loader: "babel-loader",
exclude: /node_modules/
}, {
test: /\.scss$/,
loader: ExtractTextPlugin.extract({
fallbackLoader: "style-loader",
loader: [{
loader: "css-loader",
options: { sourceMap: true, importLoaders: 1 }
},
{
loader: "sass-loader",
options: { sourceMap: true }
}]
})
}, {
test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
loader: "url-loader?limit=10000&mimetype=application/font-woff"
}, {
test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
loader: "url-loader?limit=10000&mimetype=application/font-woff"
}, {
test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/,
loader: "url-loader?limit=10000&mimetype=application/octet-stream"
}, {
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
loader: "file-loader"
}, {
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
loader: "url-loader?limit=10000&mimetype=image/svg+xml"
}]
}
}; |
If they're going to change it again before release we should wait. Thanks for digging into this. |
I got it working with webpack v2.0.0 using the following config
the root cause seems to be I wound up modifying the example above, because it was still failing for me, to include the |
extract-text-webpack-plugin-2.0.0 has been released as stable, buffalo is broken with current webpack.config.js #262. This issue should be solved or specify its version to a compatible one. |
No description provided.
The text was updated successfully, but these errors were encountered: