Update webpack 3.1.0 et al

This commit is contained in:
2017-07-09 07:28:28 -07:00
parent 949fa86c38
commit afbaf8fb2e
9 changed files with 268 additions and 197 deletions

View File

@@ -51,8 +51,10 @@ let webpackConfig = {
{
test: /\.js$/,
exclude: [/(node_modules|bower_components)(?![/|\\](bootstrap|foundation-sites))/],
loader: 'buble',
options: { objectAssign: 'Object.assign' },
use: [
{ loader: 'cache' },
{ loader: 'buble', options: { objectAssign: 'Object.assign' } },
],
},
{
test: /\.css$/,
@@ -60,6 +62,7 @@ let webpackConfig = {
use: ExtractTextPlugin.extract({
fallback: 'style',
use: [
{ loader: 'cache' },
{ loader: 'css', options: { sourceMap: config.enabled.sourceMaps } },
{
loader: 'postcss', options: {
@@ -76,6 +79,7 @@ let webpackConfig = {
use: ExtractTextPlugin.extract({
fallback: 'style',
use: [
{ loader: 'cache' },
{ loader: 'css', options: { sourceMap: config.enabled.sourceMaps } },
{
loader: 'postcss', options: {
@@ -103,8 +107,8 @@ let webpackConfig = {
loader: 'url',
options: {
limit: 4096,
publicPath: '../',
name: `vendor/${config.cacheBusting}.[ext]`,
outputPath: 'vendor/',
name: `${config.cacheBusting}.[ext]`,
},
},
],